Skip to content

Commit 8436136

Browse files
authored
Update SecretCacheObject.java
1 parent 01d746b commit 8436136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/amazonaws/secretsmanager/caching/cache/SecretCacheObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public boolean refreshNow() throws InterruptedException {
214214
// secret that continues to throw an exception such as AccessDenied.
215215
Duration wait = Duration.between(
216216
this.nextRetryTime,
217-
java.time.Instant.now()).abs();
217+
java.time.Instant.now());
218218
// pick the max.
219219
sleep = sleep.compareTo(wait) >= 0 ? sleep : wait;
220220
}

0 commit comments

Comments
 (0)