Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: 5kbpers <[email protected]>
  • Loading branch information
5kbpers committed Feb 11, 2020
1 parent 35e811b commit c76629a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/restore/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c76629a

Please sign in to comment.