mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2024-12-27 23:40:16 +08:00
Merge pull request #70 from libp2p/fix/err-handling
fix error handling in UpdateAddrs: return on error
This commit is contained in:
commit
ab02c26ae9
@ -264,6 +264,7 @@ func (ab *dsAddrBook) UpdateAddrs(p peer.ID, oldTTL time.Duration, newTTL time.D
|
||||
pr, err := ab.loadRecord(p, true, false)
|
||||
if err != nil {
|
||||
log.Errorf("failed to update ttls for peer %s: %s\n", p.Pretty(), err)
|
||||
return
|
||||
}
|
||||
|
||||
pr.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user