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 59db5e1a2a
commit 8dee353492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save