when passed an event bus, automatically clean up disconnected peers

This commit is contained in:
Marten Seemann
2021-11-27 16:41:22 +04:00
parent 2c4e04b1e5
commit 51974ae06e
9 changed files with 899 additions and 25 deletions

2
go.mod
View File

@@ -6,12 +6,14 @@ retract v0.2.9 // Contains backwards-incompatible changes. Use v0.3.0 instead.
require (
github.com/gogo/protobuf v1.3.2
github.com/golang/mock v1.6.0
github.com/hashicorp/golang-lru v0.5.4
github.com/ipfs/go-datastore v0.5.0
github.com/ipfs/go-ds-badger v0.3.0
github.com/ipfs/go-ds-leveldb v0.5.0
github.com/ipfs/go-log/v2 v2.3.0
github.com/libp2p/go-buffer-pool v0.0.2
github.com/libp2p/go-eventbus v0.2.1
github.com/libp2p/go-libp2p-core v0.12.0
github.com/multiformats/go-base32 v0.0.3
github.com/multiformats/go-multiaddr v0.3.3