Commit 34d694c3 authored by protolambda's avatar protolambda Committed by GitHub

op-node: update config-reloading comment

Co-authored-by: default avatarAdrian Sutton <adrian@oplabs.co>
parent 765e3ebe
......@@ -199,7 +199,7 @@ func (n *OpNode) initRuntimeConfig(ctx context.Context, cfg *Config) error {
return fmt.Errorf("failed to load runtime configuration repeatedly, last error: %w", err)
}
// start a background loop, to keep reloading it every 10 minutes
// start a background loop, to keep reloading it at the configured reload interval
go func(ctx context.Context, reloadInterval time.Duration) {
if reloadInterval <= 0 {
n.log.Debug("not running runtime-config reloading background loop")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment