[#1061] node: Set TTL for morph rule cache from morph config
All checks were successful
DCO action / DCO (pull_request) Successful in 1m43s
Build / Build Components (1.21) (pull_request) Successful in 4m3s
Vulncheck / Vulncheck (pull_request) Successful in 4m1s
Build / Build Components (1.20) (pull_request) Successful in 5m28s
Tests and linters / Staticcheck (pull_request) Successful in 6m16s
Tests and linters / Lint (pull_request) Successful in 7m0s
Tests and linters / gopls check (pull_request) Successful in 6m47s
Tests and linters / Tests (1.21) (pull_request) Successful in 7m55s
Tests and linters / Tests (1.20) (pull_request) Successful in 8m43s
Tests and linters / Tests with -race (pull_request) Successful in 9m6s
All checks were successful
DCO action / DCO (pull_request) Successful in 1m43s
Build / Build Components (1.21) (pull_request) Successful in 4m3s
Vulncheck / Vulncheck (pull_request) Successful in 4m1s
Build / Build Components (1.20) (pull_request) Successful in 5m28s
Tests and linters / Staticcheck (pull_request) Successful in 6m16s
Tests and linters / Lint (pull_request) Successful in 7m0s
Tests and linters / gopls check (pull_request) Successful in 6m47s
Tests and linters / Tests (1.21) (pull_request) Successful in 7m55s
Tests and linters / Tests (1.20) (pull_request) Successful in 8m43s
Tests and linters / Tests with -race (pull_request) Successful in 9m6s
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
d5194ab2a6
commit
4080b99310
1 changed files with 1 additions and 1 deletions
|
@ -1083,7 +1083,7 @@ func initAccessPolicyEngine(_ context.Context, c *cfg) {
|
|||
|
||||
cacheSize := morphconfig.APEChainCacheSize(c.appCfg)
|
||||
if cacheSize > 0 {
|
||||
morphRuleStorage = newMorphCache(morphRuleStorage, int(cacheSize), morphconfig.CacheTTL(c.appCfg))
|
||||
morphRuleStorage = newMorphCache(morphRuleStorage, int(cacheSize), c.cfgMorph.cacheTTL)
|
||||
}
|
||||
|
||||
ape := newAccessPolicyEngine(morphRuleStorage, localOverrideDB)
|
||||
|
|
Loading…
Reference in a new issue