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,
notif := notifications.New()
go func() {
for {
select {
case <-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