Skip to content

Commit 1c49b44

Browse files
committed
Update retry delay multiplier in ExponentialBackoffRetryLogic
This fixes a bug in ExponentialBackoffRetryLogic and ensures that the retry delay works as expected.
1 parent 1e71209 commit 1c49b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/src/main/java/org/neo4j/driver/internal/retry/ExponentialBackoffRetryLogic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ExponentialBackoffRetryLogic implements RetryLogic {
4545
public static final long DEFAULT_MAX_RETRY_TIME_MS = SECONDS.toMillis(30);
4646

4747
private static final long INITIAL_RETRY_DELAY_MS = SECONDS.toMillis(1);
48-
private static final double RETRY_DELAY_MULTIPLIER = 1;
48+
private static final double RETRY_DELAY_MULTIPLIER = 2.0;
4949
private static final double RETRY_DELAY_JITTER_FACTOR = 0.2;
5050
private static final long MAX_RETRY_DELAY = Long.MAX_VALUE / 2;
5151

0 commit comments

Comments
 (0)