Skip to content

Commit

Permalink
retry checkServiceModeChanged to make tso client work normal
Browse files Browse the repository at this point in the history
Signed-off-by: okJiang <819421878@qq.com>
  • Loading branch information
okJiang authored and ti-chi-bot committed Jan 6, 2025
1 parent d62b7b6 commit 97ecf34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/pd_service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ func (c *pdServiceDiscovery) Init() error {
}
}

if err := c.checkServiceModeChanged(); err != nil {
log.Warn("[pd] failed to check service mode and will check later", zap.Error(err))
if err := c.initRetry(c.checkServiceModeChanged); err != nil {
return err
}

c.wg.Add(3)
Expand Down

0 comments on commit 97ecf34

Please sign in to comment.