mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-01-15 02:40:07 +08:00
cce0adbd0a
1. Fix expiration check to check "not before" instead of after. Otherwise, something that is expiring "now" won't count as expired. The datastore-backed peerstore already had the correct logic. 2. Short-circuit updating the TTL to 0 and just delete the records. Note: this wasn't causing problems on Linux (likely due to monotonic clocks?) but was causing go-libp2p tests to fail reliably on Windows. |
||
---|---|---|
.. | ||
addr_book.go | ||
inmem_test.go | ||
keybook.go | ||
metadata.go | ||
peerstore.go | ||
protobook.go |