diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-11-23 08:20:36 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-23 08:20:36 +1100 |
| commit | c49b973120c7fd755923a2b88afd794c7d320d6e (patch) | |
| tree | 5fcef6de1a85568eee3c67470f73b790b294dda8 /internal/configuration/provider.go | |
| parent | fa141929a39e546f3f3ca6bcbc7bd72c64e575c8 (diff) | |
fix(configuration): illogical refresh interval default (#6319)
When using the file provider with watch enabled, the refresh interval should just be set to always default as the cost is minimal.
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/configuration/provider.go')
| -rw-r--r-- | internal/configuration/provider.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/configuration/provider.go b/internal/configuration/provider.go index b6dcaffff..01bfba5cf 100644 --- a/internal/configuration/provider.go +++ b/internal/configuration/provider.go @@ -69,6 +69,7 @@ func unmarshal(ko *koanf.Koanf, val *schema.StructValidator, path string, o any) StringToTLSVersionHookFunc(), StringToPasswordDigestHookFunc(), ToTimeDurationHookFunc(), + ToRefreshIntervalDurationHookFunc(), ), Metadata: nil, Result: o, |
