@@ -144,7 +144,8 @@ public StateMachine getStateMachine() {
144
144
return this .fsmCaller .map (StateMachineCaller ::getStateMachine ).orElse (null );
145
145
}
146
146
147
- @ Override public CompletableFuture <HeartBeatResponse > handleHeartBeat (HeartBeatRequest request ) throws Exception {
147
+ @ Override
148
+ public CompletableFuture <HeartBeatResponse > handleHeartBeat (HeartBeatRequest request ) throws Exception {
148
149
try {
149
150
150
151
PreConditions .check (memberState .getSelfId ().equals (request .getRemoteId ()), DLedgerResponseCode .UNKNOWN_MEMBER , "%s != %s" , request .getRemoteId (), memberState .getSelfId ());
@@ -160,7 +161,8 @@ public StateMachine getStateMachine() {
160
161
}
161
162
}
162
163
163
- @ Override public CompletableFuture <VoteResponse > handleVote (VoteRequest request ) throws Exception {
164
+ @ Override
165
+ public CompletableFuture <VoteResponse > handleVote (VoteRequest request ) throws Exception {
164
166
try {
165
167
PreConditions .check (memberState .getSelfId ().equals (request .getRemoteId ()), DLedgerResponseCode .UNKNOWN_MEMBER , "%s != %s" , request .getRemoteId (), memberState .getSelfId ());
166
168
PreConditions .check (memberState .getGroup ().equals (request .getGroup ()), DLedgerResponseCode .UNKNOWN_GROUP , "%s != %s" , request .getGroup (), memberState .getGroup ());
@@ -264,7 +266,8 @@ public CompletableFuture<GetEntriesResponse> handleGet(GetEntriesRequest request
264
266
}
265
267
}
266
268
267
- @ Override public CompletableFuture <MetadataResponse > handleMetadata (MetadataRequest request ) throws Exception {
269
+ @ Override
270
+ public CompletableFuture <MetadataResponse > handleMetadata (MetadataRequest request ) throws Exception {
268
271
try {
269
272
PreConditions .check (memberState .getSelfId ().equals (request .getRemoteId ()), DLedgerResponseCode .UNKNOWN_MEMBER , "%s != %s" , request .getRemoteId (), memberState .getSelfId ());
270
273
PreConditions .check (memberState .getGroup ().equals (request .getGroup ()), DLedgerResponseCode .UNKNOWN_GROUP , "%s != %s" , request .getGroup (), memberState .getGroup ());
@@ -289,7 +292,8 @@ public CompletableFuture<PullEntriesResponse> handlePull(PullEntriesRequest requ
289
292
return null ;
290
293
}
291
294
292
- @ Override public CompletableFuture <PushEntryResponse > handlePush (PushEntryRequest request ) throws Exception {
295
+ @ Override
296
+ public CompletableFuture <PushEntryResponse > handlePush (PushEntryRequest request ) throws Exception {
293
297
try {
294
298
PreConditions .check (memberState .getSelfId ().equals (request .getRemoteId ()), DLedgerResponseCode .UNKNOWN_MEMBER , "%s != %s" , request .getRemoteId (), memberState .getSelfId ());
295
299
PreConditions .check (memberState .getGroup ().equals (request .getGroup ()), DLedgerResponseCode .UNKNOWN_GROUP , "%s != %s" , request .getGroup (), memberState .getGroup ());
0 commit comments