go-bitswap
go-bitswap copied to clipboard
feat: StreamBlocks()
Fixes https://github.com/ipfs/go-bitswap/issues/228
Note that the StreamBlocks() method takes a channel of a slice of keys:
StreamBlocks(ctx context.Context, keys <-chan []cid.Cid) (<-chan blocks.Block, error)