Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Sep 10, 2024
1 parent 1069fa7 commit 80133c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/pd_service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,7 @@ func (c *pdServiceDiscovery) updateServiceModeLoop() {
defer cancel()
ticker := time.NewTicker(serviceModeUpdateInterval)
failpoint.Inject("fastUpdateServiceMode", func() {
ticker.Stop()
ticker = time.NewTicker(10 * time.Millisecond)
ticker.Reset(10 * time.Millisecond)
})
defer ticker.Stop()

Expand Down

0 comments on commit 80133c9

Please sign in to comment.