Commit 72a0cc18 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 3fdbd6cd
......@@ -31,10 +31,8 @@ func New(ctx context.Context, p peer.Peer,
notif := notifications.New()
go func() {
select {
case <-ctx.Done():
notif.Shutdown()
}
<-ctx.Done()
notif.Shutdown()
}()
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