Open feng7208485 opened 9 months ago
this bug should fix by following code:
func (op *mapOperator) next(ctx context.Context, item Item, dst chan<- Item, operatorOptions operatorOptions) {
res, err := op.apply(ctx, item.V)
if err != nil {
Of(res).Error(err).SendContext(ctx,** dst)
operatorOptions.stop()
return
}
Of(res).SendContext(ctx, dst)
}
just add "Of(res)" before line 4
here is my code
the out put is
Expected behavior I expect item.V is not nil, the framwork should not drop result even if the map fun return an error!!!