dcapwell commented on code in PR #30:
URL: https://github.com/apache/cassandra-accord/pull/30#discussion_r1136285750
##########
accord-core/src/main/java/accord/utils/async/AsyncChainCombiner.java:
##########
@@ -165,4 +165,26 @@ static <V> boolean canAppendTo(AsyncChain<? extends V>
chain, BiFunction<V, V, V
return reduce.reducer == reducer;
}
}
+
+ static class ReduceWithZero<A, B> extends AsyncChainCombiner<A, B>
+ {
+ private final B zero;
+ private final BiFunction<B, ? super A, B> reducer;
+
+ protected ReduceWithZero(List<? extends AsyncChain<? extends A>>
inputs, B zero, BiFunction<B, ? super A, B> reducer)
Review Comment:
renamed and updated variables
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]