Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rayokota committed Oct 18, 2024
1 parent 61c714c commit 37171b7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ public static Integer getHttpReadTimeoutMs(Map<String, ?> configs) {

public static long getLatestTTL(Map<String, ?> configs) {
if (configs != null && configs.containsKey(LATEST_CACHE_TTL_CONFIG)) {
Object latestTTLVal = configs.get(LATEST_CACHE_TTL_CONFIG);
return latestTTLVal instanceof String
? Long.parseLong((String) latestTTLVal)
: ((Number) latestTTLVal).longValue();
Object latestVal = configs.get(LATEST_CACHE_TTL_CONFIG);
return latestVal instanceof String
? Long.parseLong((String) latestVal)
: ((Number) latestVal).longValue();
} else {
return LATEST_CACHE_TTL_DEFAULT;
}
Expand Down

0 comments on commit 37171b7

Please sign in to comment.