fix auth cache
This commit is contained in:
1 parent
7e10fb5217
commit
675a917c0c
7 files changed
+32
-22
No files matched your search
@@ -37,11 +37,11 @@ type authenticate struct {
|
||||
}
|
||||
|
||||
func ReceiveConfiguration(conf conf.Cache) {
|
||||
if conf.EnableCash {
|
||||
if conf.EnableCache {
|
||||
if timeout, err := time.ParseDuration(conf.EvictTimeout); err != nil {
|
||||
log.Fatalf(stdcodes.ModuleInvalidRemoteConfig, "invalid timeout '%s'", timeout)
|
||||
} else {
|
||||
auth.verify = veritification.NewCacheableVerify(timeout)
|
||||
auth.verify = veritification.NewCacheablesVerify(timeout)
|
||||
}
|
||||
} else {
|
||||
auth.verify = veritification.NewRuntimeVerify()
|
||||
|
||||
Reference in new issue
Block a user