From 2c64af26c38afecda3e311b11f0fc510482ee394 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 16 Jul 2021 15:40:47 -0700 Subject: [PATCH] fix: log sequence ds error --- pstoreds/addr_book.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pstoreds/addr_book.go b/pstoreds/addr_book.go index 0f1703a..d0998de 100644 --- a/pstoreds/addr_book.go +++ b/pstoreds/addr_book.go @@ -300,6 +300,9 @@ func (ab *dsAddrBook) ConsumePeerRecord(recordEnvelope *record.Envelope, ttl tim func (ab *dsAddrBook) latestPeerRecordSeq(p peer.ID) uint64 { pr, err := ab.loadRecord(p, true, false) if err != nil { + // We ignore the error because we don't want to fail storing a new record in this + // case. + log.Errorw("unable to load record", "peer", p, "error", err) return 0 } pr.RLock()