From f696195feda3fccb4a28078e9d551dc556774f4a Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 11 Oct 2023 20:55:13 -0700 Subject: [PATCH] add todo --- deferred-rate-limiter/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/deferred-rate-limiter/src/lib.rs b/deferred-rate-limiter/src/lib.rs index 626afa3e..e41a8e2f 100644 --- a/deferred-rate-limiter/src/lib.rs +++ b/deferred-rate-limiter/src/lib.rs @@ -76,6 +76,7 @@ where return Ok(DeferredRateLimitResult::RetryNever); } + // TODO: i do not like having this in a mutex at all let deferred_rate_limit_result = Arc::new(Mutex::new(None)); let redis_key = format!("{}:{}", self.prefix, key);