mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-07 22:42:22 -04:00
fix stuttering StoreValueUnsetError
This commit is contained in:
parent
5660f813f0
commit
b1818ba089
5 changed files with 9 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue