Skip to content

Commit

Permalink
feat(dledger server): add a method to inform us the whether DLedger i…
Browse files Browse the repository at this point in the history
…s leader (#206)

1. add a method to inform us the whether DLedger is leader
  • Loading branch information
TheR1sing3un committed Aug 29, 2022
1 parent ba7f89a commit 2214e5c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,4 +486,8 @@ public NettyRemotingClient getRemotingClient() {
return null;
}

public boolean isLeader() {
return this.memberState.isLeader();
}

}

0 comments on commit 2214e5c

Please sign in to comment.