Skip to content

Commit

Permalink
fix ttl cache usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Sep 6, 2023
1 parent 8d26f61 commit 5adf1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func NewConfig() *Config {
Limit: int64(configFile.RateLimit.Max),
},
CacheStorage: freecache.NewCache(1024 * 1024 * configFile.Cache.SizeMB),
CacheTTL: time.Duration(configFile.Cache.SizeMB) * (time.Second),
CacheTTL: time.Duration(configFile.Cache.TTL) * (time.Second),
ProxyConfig: &proxyConfig,
}

Expand Down

0 comments on commit 5adf1d4

Please sign in to comment.