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

Signed-off-by: Dan Bond <danbond@protonmail.com>
This commit is contained in:
Dan Bond 2023-05-16 02:50:27 -07:00 committed by GitHub
parent 59db5e1a2a
commit 8dee353492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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