Skip to content

Commit a53fd48

Browse files
authored
setMaxTotalConnections 100 (#25)
* setMaxTotalConnections 1000 * setMaxTotalConnections 100
1 parent c94be96 commit a53fd48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rpc-client/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ private static class TuGraphSingleRpcClient {
363363

364364
public TuGraphSingleRpcClient(String url, String user, String pass) {
365365
RpcClientOptions options = new RpcClientOptions();
366+
options.setMaxTotalConnections(100);
366367
options.setProtocolType(Options.ProtocolType.PROTOCOL_BAIDU_STD_VALUE);
367368
options.setLoadBalanceType(LoadBalanceStrategy.LOAD_BALANCE_FAIR);
368369
options.setWriteTimeoutMillis(TIMEOUTINMS);

0 commit comments

Comments
 (0)