We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df833de commit 94676f1Copy full SHA for 94676f1
src/main/java/co/stateful/Atomic.java
@@ -155,9 +155,11 @@ public T call() throws Exception {
155
++attempt;
156
final long delay = Math.min(
157
TimeUnit.MINUTES.toMillis(1L),
158
- (long) Tv.HUNDRED + (long) Atomic.RANDOM.nextInt(Tv.HUNDRED)
159
- // @checkstyle MagicNumber (1 line)
160
- + (long) StrictMath.pow(5.0d, (double) attempt + 1.0d)
+ Math.abs(
+ (long) Tv.HUNDRED + (long) Atomic.RANDOM.nextInt(Tv.HUNDRED)
+ // @checkstyle MagicNumber (1 line)
161
+ + (long) StrictMath.pow(5.0d, (double) attempt + 1.0d)
162
+ )
163
);
164
Logger.info(
165
this,
0 commit comments