Commit cc9028d1 authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub

Merge pull request #4316 from ipfs/fix/bitswap-active-peers

filter out "" from active peers in bitswap sessions
parents bec48890 42f8fed0
......@@ -159,7 +159,9 @@ func (s *Session) run(ctx context.Context) {
case blk := <-s.incoming:
s.tick.Stop()
s.addActivePeer(blk.from)
if blk.from != "" {
s.addActivePeer(blk.from)
}
s.receiveBlock(ctx, blk.blk)
......
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