mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 19:37:46 +08:00
doc
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
parent
fc820a8110
commit
a932bfdfab
@ -14,7 +14,7 @@ func ForwardN(ctx context.Context, in <-chan *blocks.Block, num int) <-chan *blo
|
||||
select {
|
||||
case block, ok := <-in:
|
||||
if !ok {
|
||||
return
|
||||
return // otherwise nil value is forwarded to output
|
||||
}
|
||||
select {
|
||||
case out <- block:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user