Skip to content

Commit

Permalink
Fix subscription based airl from the ratelimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Oct 24, 2024
1 parent 794d9b6 commit f0f13ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common-controller/internal/cache/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0f13ad

Please sign in to comment.