Skip to content

Commit

Permalink
router: remove useless error (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 authored May 30, 2023
1 parent db9c99f commit df69e53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/manager/router/backend_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func (pf *PDFetcher) fetchBackendList(ctx context.Context) {
if response, err = pf.client.Get(ctx, infosync.TopologyInformationPath, clientv3.WithPrefix()); err == nil {
break
}
// Ignore errors when TiProxy shuts down.
if ctx.Err() != nil {
return
}
pf.logger.Error("fetch backend list failed, will retry later", zap.Error(err))
time.Sleep(pf.config.RetryInterval)
}
Expand Down

0 comments on commit df69e53

Please sign in to comment.