From 0e31d413eb36895a00a81e38342d12fb4f5b535f Mon Sep 17 00:00:00 2001 From: MartinquaXD Date: Fri, 3 Jan 2025 12:15:46 +0000 Subject: [PATCH] rename variable --- crates/driver/src/domain/competition/bad_tokens/cache.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/driver/src/domain/competition/bad_tokens/cache.rs b/crates/driver/src/domain/competition/bad_tokens/cache.rs index cbaf8b537b..7e8693154c 100644 --- a/crates/driver/src/domain/competition/bad_tokens/cache.rs +++ b/crates/driver/src/domain/competition/bad_tokens/cache.rs @@ -43,14 +43,14 @@ impl Cache { self.0 .cache .entry(token) - .and_modify(|value| { - if !is_supported || now.duration_since(value.last_updated) > self.0.max_age { + .and_modify(|token| { + if !is_supported || now.duration_since(token.last_updated) > self.0.max_age { // Only update the value if the cached value is outdated by now or // if the new value is "Unsupported". This means on conflicting updates // we err on the conservative side and assume a token is unsupported. - value.is_supported = is_supported; + token.is_supported = is_supported; } - value.last_updated = now; + token.last_updated = now; }) .or_insert_with(|| CacheEntry { is_supported,