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
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 | ||
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