From f0f13ad87864f68938145fd6d8ab028bb7865e8a Mon Sep 17 00:00:00 2001 From: Tharsanan1 Date: Thu, 24 Oct 2024 14:21:40 +0530 Subject: [PATCH] Fix subscription based airl from the ratelimiter --- common-controller/internal/cache/datastore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-controller/internal/cache/datastore.go b/common-controller/internal/cache/datastore.go index a8db90f7b..6ee9b1ecc 100644 --- a/common-controller/internal/cache/datastore.go +++ b/common-controller/internal/cache/datastore.go @@ -175,7 +175,7 @@ func (ods *RatelimitDataStore) DeleteSubscriptionBasedAIRatelimitPolicySpec(subs ods.mu.Lock() defer ods.mu.Unlock() logger.Debug("Deleting AI ratelimit from cache") - delete(ods.aiRatelimitPolicySpecs, subscription) + delete(ods.subscriptionBasedAIRatelimitPolicySpecs, subscription) } // NamespacedName generates namespaced name for Kubernetes objects