Skip to content

Commit

Permalink
br: add GetTSWithRetry func
Browse files Browse the repository at this point in the history
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
  • Loading branch information
MoCuishle28 committed Oct 27, 2022
1 parent b2bf784 commit 5a4bdcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions br/pkg/restore/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,9 @@ func (rc *Client) GetTS(ctx context.Context) (uint64, error) {
// GetTSWithRetry gets a new timestamp with retry from PD.
func (rc *Client) GetTSWithRetry(ctx context.Context) (uint64, error) {
var (
startTS uint64
startTS uint64
getTSErr error
retry uint
retry uint
)

err := utils.WithRetry(ctx, func() error {
Expand Down

0 comments on commit 5a4bdcc

Please sign in to comment.