Commit b0e60a69 authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(bitswap) shutdown

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent eeffc3a5
...@@ -31,10 +31,8 @@ func New(ctx context.Context, p peer.Peer, ...@@ -31,10 +31,8 @@ func New(ctx context.Context, p peer.Peer,
notif := notifications.New() notif := notifications.New()
go func() { go func() {
select { <-ctx.Done()
case <-ctx.Done():
notif.Shutdown() notif.Shutdown()
}
}() }()
bs := &bitswap{ bs := &bitswap{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment