go-libp2p-peerstore/pstoremem
Steven Allen cce0adbd0a fix: delete addrs when "updating" them to zero
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.
2021-04-29 17:20:27 -07:00
..
addr_book.go fix: delete addrs when "updating" them to zero 2021-04-29 17:20:27 -07:00
inmem_test.go test: check for goroutine leaks when closing the peerstore 2020-03-23 14:16:16 -07:00
keybook.go Certified addresses (#98) 2020-03-06 12:07:36 +00:00
metadata.go fix: handle nil peer IDs 2020-04-05 23:05:41 -07:00
peerstore.go fix: make close work again 2020-03-23 13:59:56 -07:00
protobook.go changes for the new interface 2020-05-11 13:07:08 +05:30