fix: need to call the hook not pass it as a factory
This commit is contained in:
parent
fb8dfb2fa2
commit
5a78750df1
|
@ -47,7 +47,7 @@ func NewManager(logger *zap.Logger) (*Manager, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
err = v.Unmarshal(&config, viper.DecodeHook(cacheConfigHook))
|
||||
err = v.Unmarshal(&config, viper.DecodeHook(cacheConfigHook()))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue