fix stuttering StoreValueUnsetError

This commit is contained in:
Thomas Tendyck 2022-03-25 12:49:22 +01:00 committed by Thomas Tendyck
parent 5660f813f0
commit b1818ba089
5 changed files with 9 additions and 9 deletions

View file

@ -107,7 +107,7 @@ func (s StoreWrapper) GetPeers() ([]peer.Peer, error) {
// Should be called in a transaction together with Add/Remove operation(s).
func (s StoreWrapper) IncrementPeersResourceVersion() error {
val, err := s.GetPeersResourceVersion()
var unsetErr *store.StoreValueUnsetError
var unsetErr *store.ValueUnsetError
if errors.As(err, &unsetErr) {
val = 0
} else if err != nil {