Commit 23802fdf authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(bitswap) shut down async

parent d42ec402
...@@ -32,12 +32,10 @@ func NetMessageSession(ctx context.Context, p peer.Peer, ...@@ -32,12 +32,10 @@ func NetMessageSession(ctx context.Context, p peer.Peer,
notif := notifications.New() notif := notifications.New()
go func() { go func() {
for {
select { select {
case <-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