Skip to content

Commit

Permalink
Merge pull request #3036 from ipfs/fix/wlist-race
Browse files Browse the repository at this point in the history
bitswap: fix a minor data race
  • Loading branch information
whyrusleeping authored Aug 4, 2016
2 parents af0d9c0 + 71a699c commit 2a4560c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exchange/bitswap/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func (bs *Bitswap) rebroadcastWorker(parent context.Context) {
case <-broadcastSignal.C: // resend unfulfilled wantlist keys
log.Event(ctx, "Bitswap.Rebroadcast.active")
for _, e := range bs.wm.wl.Entries() {
e := e
bs.findKeys <- &e
}
case <-parent.Done():
Expand Down

0 comments on commit 2a4560c

Please sign in to comment.