This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 2eda35dd5 RATIS-2293. Fix typo in ClientProtoUtils (#1263)
2eda35dd5 is described below
commit 2eda35dd532f503b299db9e3263ecbeca52da023
Author: jianghuazhu <[email protected]>
AuthorDate: Sun May 18 20:21:57 2025 +0800
RATIS-2293. Fix typo in ClientProtoUtils (#1263)
---
.../main/java/org/apache/ratis/client/impl/ClientProtoUtils.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/ratis-client/src/main/java/org/apache/ratis/client/impl/ClientProtoUtils.java
b/ratis-client/src/main/java/org/apache/ratis/client/impl/ClientProtoUtils.java
index 44e3a5cd6..36c0b3937 100644
---
a/ratis-client/src/main/java/org/apache/ratis/client/impl/ClientProtoUtils.java
+++
b/ratis-client/src/main/java/org/apache/ratis/client/impl/ClientProtoUtils.java
@@ -179,11 +179,11 @@ public interface ClientProtoUtils {
final RaftClientRequest.Builder b = RaftClientRequest.newBuilder();
- final RaftPeerId perrId = RaftPeerId.valueOf(request.getReplyId());
+ final RaftPeerId peerId = RaftPeerId.valueOf(request.getReplyId());
if (request.getToLeader()) {
- b.setLeaderId(perrId);
+ b.setLeaderId(peerId);
} else {
- b.setServerId(perrId);
+ b.setServerId(peerId);
}
if (request.hasSlidingWindowEntry()) {
b.setSlidingWindowEntry(request.getSlidingWindowEntry());