From 5a4bdcc6957cd09f8f3285292d2f7ec4499d6b00 Mon Sep 17 00:00:00 2001 From: zhanggaoming Date: Thu, 27 Oct 2022 16:59:45 +0800 Subject: [PATCH] br: add GetTSWithRetry func Signed-off-by: zhanggaoming --- br/pkg/restore/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/br/pkg/restore/client.go b/br/pkg/restore/client.go index a39084fe78d6b..85d4f8fde9fc2 100644 --- a/br/pkg/restore/client.go +++ b/br/pkg/restore/client.go @@ -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 {