File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/main/java/com/bigchaindb/builders Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ public void processConnectionFailure(Connection nodeToConnect) {
268
268
//calculate time to retry for new connection
269
269
long timeToRetryConnection = BigChainDBGlobals .DELAY * (long ) Math .pow (2 , conn .getRetryCount ());
270
270
//set whichever is smaller (this makes sure that timeToRetryConnection is always smaller than half of timeout
271
- long timeToRetryCap = BigChainDBGlobals .calculateTimeTillTimeout ()/2 ;
271
+ long timeToRetryCap = BigChainDBGlobals .getTimeout ()/2 ;
272
272
timeToRetryConnection = timeToRetryConnection < timeToRetryCap ? timeToRetryConnection : timeToRetryCap ;
273
273
274
274
conn .setTimeToRetryForConnection (System .currentTimeMillis () + timeToRetryConnection );
You can’t perform that action at this time.
0 commit comments