lugency commented on code in PR #1696:
URL: https://github.com/apache/ratis/pull/1696#discussion_r4614584223


##########
ratis-examples/src/main/java/org/apache/ratis/examples/filestore/FileStoreStateMachine.java:
##########
@@ -150,12 +150,8 @@ public TransactionContext 
startTransaction(RaftClientRequest request) throws IOE
 
   @Override
   public TransactionContext startTransaction(LogEntryProto entry, 
RaftProtos.RaftPeerRole role) {
-    return TransactionContext.newBuilder()
-        .setStateMachine(this)
-        .setLogEntry(entry)
-        .setServerRole(role)
-        .setStateMachineContext(getProto(entry))
-        .build();
+    final TransactionContext trx = super.startTransaction(entry, role);
+    return trx.setStateMachineContext(getProto(entry));

Review Comment:
   Done, thanks!



-- 
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]

Reply via email to