Browse Source

agent: don't write server metadata in dev mode (#17383)

Signed-off-by: Dan Bond <danbond@protonmail.com>
docs/fix-broken-links-1
Dan Bond 2 years ago committed by GitHub
parent
commit
8dee353492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      agent/agent.go

6
agent/agent.go

@ -636,8 +636,10 @@ func (a *Agent) Start(ctx context.Context) error {
return err
}
// periodically write server metadata to disk.
go a.persistServerMetadata()
// Periodically write server metadata to disk.
if !consulCfg.DevMode {
go a.persistServerMetadata()
}
incomingRPCLimiter := consul.ConfiguredIncomingRPCLimiter(
&lib.StopChannelContext{StopCh: a.shutdownCh},

Loading…
Cancel
Save