mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-03-14 11:40:05 +08:00
an object to manage sets of peers, their addresses and other metadata
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 | ||
pb | ||
pstoreds | ||
pstoremem | ||
queue | ||
test | ||
.gitignore | ||
.travis.yml | ||
codecov.yml | ||
go.mod | ||
go.sum | ||
interface.go | ||
LICENSE | ||
metrics_test.go | ||
metrics.go | ||
peerinfo.go | ||
peerstore.go | ||
README.md |
go-libp2p-peerstore
An object to manage peers, their addresses, and other metadata about them.
Install
go get github.com/libp2p/go-libp2p-peerstore
Usage
Check out the GoDocs.
Contribute
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.
Want to hack on IPFS?
License
MIT
The last gx published version of this module was: 2.0.19: QmaCTz9RkrU13bm9kMB54f7atgqM4qkjDZpRwRoJiWXEqs