Skip to content

Commit

Permalink
backport of commit ccf91c7 (#17384)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Bond <[email protected]>
  • Loading branch information
hc-github-team-consul-core and loshz authored May 16, 2023
1 parent 0beb371 commit 7dccf73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,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},
Expand Down

0 comments on commit 7dccf73

Please sign in to comment.