mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-09-26 20:21:26 +08:00
fix(pstoreds): add missing log for failed GC record unmarshalling in purgeStore()
(#3273)
This commit is contained in:
@@ -278,7 +278,7 @@ func (gc *dsAddrBookGc) purgeStore() {
|
||||
for result := range results.Next() {
|
||||
record.Reset()
|
||||
if err = proto.Unmarshal(result.Value, record); err != nil {
|
||||
// TODO log
|
||||
log.Warnf("failed to unmarshal record during GC purge: key=%s, err=%v", result.Key, err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user