ifesdjeen commented on code in PR #198: URL: https://github.com/apache/cassandra-accord/pull/198#discussion_r2132270583
########## accord-core/src/main/java/accord/coordinate/CoordinateEphemeralRead.java: ########## @@ -65,20 +67,36 @@ public static AsyncResult<Result> coordinate(Node node, FullRoute<?> route, TxnI return AsyncResults.failure(mismatch); Topologies topologies = node.topology().withUnsyncedEpochs(route, txnId, txnId); - CoordinateEphemeralRead coordinate = new CoordinateEphemeralRead(node, topologies, route, txnId, txn); + SettableByCallback<Result> result = new SettableByCallback<>(); Review Comment: would something like this make sense? ``` public static AsyncResult<Result> coordinate(Node node, FullRoute<?> route, TxnId txnId, Txn txn) { SettableByCallback<Result> result = new SettableByCallback<>(); coordinate(node, route, txnId, txn, result); return result; } ``` -- 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: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org