mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2024-12-26 23:30:32 +08:00
2fb6d7a48f
The first fix independently extends the address expiration time and the address TTL: By example: * We have an address with a TTL of 4s that will expire in 1s. * We update it with a TTL of 3s. Before this change: * We end up with an address with a TTL of 3s that will expire in 3s. After this change: * We end up with an address with a TTL of 4s that will expire in 3s. --- The second fix prevents the in-memory addressbook from announcing existing addresses every time their TTLs get updated. --- The third fix correctly updates TTLs for existing addresses in the on-disk addressbook. This fixes https://github.com/libp2p/go-libp2p-identify/issues/2 |
||
---|---|---|
.. | ||
addr_book_gc_test.go | ||
addr_book_gc.go | ||
addr_book.go | ||
cache.go | ||
cyclic_batch.go | ||
ds_test.go | ||
keybook.go | ||
metadata.go | ||
peerstore.go | ||
protobook.go |