Commit a932bfdf authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

doc

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent fc820a81
......@@ -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:
......
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