mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/network/stream: pass context in watchDisconnections
This commit is contained in:
parent
1467d2b2bb
commit
3710a722b3
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ func createTestLocalStorageForID(id enode.ID, addr *network.BzzAddr) (storage.Ch
|
|||
func watchDisconnections(ctx context.Context, sim *simulation.Simulation) (disconnected atomic.Value) {
|
||||
log.Debug("Watching for disconnections")
|
||||
disconnections := sim.PeerEvents(
|
||||
context.Background(),
|
||||
ctx,
|
||||
sim.NodeIDs(),
|
||||
simulation.NewPeerEventsFilter().Drop(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue