diff --git a/internal/platform/denylist/denylist.go b/internal/platform/denylist/denylist.go index 99ee6cb..d0546bd 100644 --- a/internal/platform/denylist/denylist.go +++ b/internal/platform/denylist/denylist.go @@ -59,6 +59,8 @@ func New(cfg *config.APIFWConfiguration, logger *logrus.Logger) (*DeniedTokens, // max cost = total bytes found in the storage + 5% maxCost := totalCacheCapacity + totalCacheCapacity/20 + logger.Debugf("Denylist: cache capacity: %d bytes", maxCost) + cache, err := ristretto.NewCache(&ristretto.Config{ NumCounters: maxCost * 10, // recommended value MaxCost: maxCost,