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

Commit

Permalink
Close channel on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubuxu committed Mar 25, 2017
1 parent 5627dd9 commit 7ab4305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ func (s *Shell) FindProvs(ctx context.Context, cid string) (<-chan pstore.PeerIn
outchan := make(chan pstore.PeerInfo, 4)

go func() {
defer close(outchan)
defer cancel()

var n notif.QueryEvent
Expand Down

0 comments on commit 7ab4305

Please sign in to comment.