License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow 2014-11-21 13:17:36 -08:00 committed by Jeromy
parent fc820a8110
commit a932bfdfab

View File

@ -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: