Skip to content

Commit

Permalink
add param "jraft.bolt.conn.reconnect"
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyuan.liu committed Aug 7, 2024
1 parent 6f2e497 commit f559965
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public class RpcOptions {
/**
* Whether to enable bolt reconnection, default enabled(true).
*/
private boolean enableBoltReconnect = SystemPropertyUtil.getBoolean("jraft.bolt.conn.reconnect", true);
private boolean enableBoltReconnect = SystemPropertyUtil.getBoolean(
"jraft.bolt.conn.reconnect", true);

public int getRpcConnectTimeoutMs() {
return this.rpcConnectTimeoutMs;
Expand Down Expand Up @@ -137,7 +138,7 @@ public String toString() {
return "RpcOptions{" + "rpcConnectTimeoutMs=" + rpcConnectTimeoutMs + ", rpcDefaultTimeout="
+ rpcDefaultTimeout + ", rpcInstallSnapshotTimeout=" + rpcInstallSnapshotTimeout
+ ", rpcProcessorThreadPoolSize=" + rpcProcessorThreadPoolSize + ", enableRpcChecksum="
+ enableRpcChecksum + ", metricRegistry=" + metricRegistry + ", enableBoltReconnect=" + enableBoltReconnect
+ '}';
+ enableRpcChecksum + ", metricRegistry=" + metricRegistry + ", enableBoltReconnect="
+ enableBoltReconnect + '}';
}
}

0 comments on commit f559965

Please sign in to comment.