Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 7ab4305

Browse files
committed
Close channel on exit
1 parent 5627dd9 commit 7ab4305

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell.go

+1
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ func (s *Shell) FindProvs(ctx context.Context, cid string) (<-chan pstore.PeerIn
389389
outchan := make(chan pstore.PeerInfo, 4)
390390

391391
go func() {
392+
defer close(outchan)
392393
defer cancel()
393394

394395
var n notif.QueryEvent

0 commit comments

Comments
 (0)