mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network/stream: store kademlia in bucket
This commit is contained in:
parent
6d15944543
commit
4aed2a5e12
1 changed files with 3 additions and 0 deletions
|
|
@ -134,6 +134,9 @@ func netStoreAndDeliveryWithAddr(ctx *adapters.ServiceContext, bucket *sync.Map,
|
||||||
bucket.Store(bucketKeyDB, netStore)
|
bucket.Store(bucketKeyDB, netStore)
|
||||||
bucket.Store(bucketKeyDelivery, delivery)
|
bucket.Store(bucketKeyDelivery, delivery)
|
||||||
bucket.Store(bucketKeyFileStore, fileStore)
|
bucket.Store(bucketKeyFileStore, fileStore)
|
||||||
|
// for the kademlia object, we use the global key from the simulation package,
|
||||||
|
// as the simulation will try to access it in the WaitTillHealthy with that key
|
||||||
|
bucket.Store(simulation.BucketKeyKademlia, kad)
|
||||||
|
|
||||||
cleanup := func() {
|
cleanup := func() {
|
||||||
netStore.Close()
|
netStore.Close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue