Skip to content

Commit ce1c6e9

Browse files
committed
Update stale time to 1s to match delay previously added by the CachedSupplier
1 parent 0ceb206 commit ce1c6e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/profiles/src/main/java/software/amazon/awssdk/profiles/internal/ProfileFileRefresher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public final class ProfileFileRefresher {
3939
private static final ProfileFileRefreshRecord EMPTY_REFRESH_RECORD = ProfileFileRefreshRecord.builder()
4040
.refreshTime(Instant.MIN)
4141
.build();
42-
private static final long STALE_TIME_MS = 100;
42+
private static final long STALE_TIME_MS = 1000;
4343
private final CachedSupplier<ProfileFileRefreshRecord> profileFileCache;
4444
private volatile ProfileFileRefreshRecord currentRefreshRecord;
4545
private final Supplier<ProfileFile> profileFile;

0 commit comments

Comments
 (0)