Skip to content

Commit 6cd1ed9

Browse files
committed
fix leak ensuring SessionInterestManager is cleaned up
1 parent 2690bfa commit 6cd1ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitswap/client/internal/session/session.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func (s *Session) handleReceive(ks []cid.Cid) {
443443

444444
// Inform the SessionInterestManager that this session is no longer
445445
// expecting to receive the wanted keys
446-
s.sim.RemoveSessionWants(s.id, wanted)
446+
s.sim.RemoveSessionInterested(s.id, wanted)
447447

448448
s.idleTick.Stop()
449449

0 commit comments

Comments
 (0)