Skip to content

Commit

Permalink
修复编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Nov 16, 2024
1 parent 27f856c commit be7e3a2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ ConsumerState<R> newConsumerState(IBatchTaskContext context) {
context.onBeforeComplete(() -> {
Map<String, Object> trailer = aggregator.complete(null, state.combinedValue);
state.output.endWrite(trailer);
state.output.flush();
try{
state.output.flush();
}catch(Exception e){
throw NopException.adapt(e);
}
});

context.onAfterComplete(err -> {
Expand Down

0 comments on commit be7e3a2

Please sign in to comment.