diff --git a/pkg/restore/import.go b/pkg/restore/import.go index dbf0db77e..8c5c8b03e 100644 --- a/pkg/restore/import.go +++ b/pkg/restore/import.go @@ -160,7 +160,7 @@ func (importer *FileImporter) Import(file *backup.File, rewriteRules *RewriteRul zap.Binary("startKey", startKey), zap.Binary("endKey", endKey)) err = utils.WithRetry(importer.ctx, func() error { - ctx, cancel := context.WithTimeout(importer.ctx, importScanResgionTime) + ctx, cancel := context.WithTimeout(importer.ctx, importScanRegionTime) defer cancel() // Scan regions covered by the file range regionInfos, err1 := importer.metaClient.ScanRegions(ctx, startKey, endKey, 0)