Commit 25bfef8d authored by Jeromy's avatar Jeromy

blockservice: don't store blocks we already have

License: MIT
Signed-off-by: default avatarJeromy <why@ipfs.io>
parent 67815d2e
......@@ -133,6 +133,7 @@ func (bs *Bitswap) provideCollector(ctx context.Context) {
log.Debug("newBlocks channel closed")
return
}
if keysOut == nil {
nextKey = blk.Key()
keysOut = bs.provideKeys
......
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