Skip to content
Snippets Groups Projects
Commit d6ff957b authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

fix improper load error handling

parent b30009ca
No related branches found
No related tags found
3 merge requests!510Release,!207WIP: Client Restructure,!203Symmetric broadcast
......@@ -3,6 +3,9 @@ package store
import (
"bytes"
"encoding/binary"
"sync"
"testing"
"github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/storage/versioned"
......@@ -10,8 +13,6 @@ import (
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/id/ephemeral"
"gitlab.com/xx_network/primitives/netTime"
"sync"
"testing"
)
// UncheckedRoundStore stores rounds to retry for message retrieval.
......@@ -38,7 +39,7 @@ func NewOrLoadUncheckedStore(kv *versioned.KV) *UncheckedRoundStore {
kv = kv.Prefix(uncheckedRoundPrefix)
urs, err := LoadUncheckedStore(kv)
if err != nil {
if err == nil {
return urs
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment