go-libp2p-peerstore/pstoreds
Steven Allen 2fb6d7a48f fix multiple TTL bugs
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
2019-07-24 17:04:37 -07:00
..
addr_book_gc_test.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
addr_book_gc.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
addr_book.go fix multiple TTL bugs 2019-07-24 17:04:37 -07:00
cache.go add Keys() function to private cache interface for completeness. 2018-11-15 18:39:38 +00:00
cyclic_batch.go improve docs; cyclic batch arg; validations. 2019-02-06 14:36:51 +00:00
ds_test.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
keybook.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
metadata.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
peerstore.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
protobook.go make RemoveProtocols take the write lock. (#90) 2019-07-10 15:45:49 +01:00