mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
agent: don't write server metadata in dev mode (#17383)
Signed-off-by: Dan Bond <danbond@protonmail.com>
This commit is contained in:
parent
59db5e1a2a
commit
8dee353492
@ -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…
x
Reference in New Issue
Block a user