fix: need to call the hook not pass it as a factory

This commit is contained in:
Derrick Hammer 2024-02-24 08:57:36 -05:00
parent fb8dfb2fa2
commit 5a78750df1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}