add context to LockedRepo#Datastore().

This commit is contained in:
Raúl Kripalani
2021-01-26 11:01:43 +00:00
parent ce3af308ed
commit a1da1dab85
21 changed files with 42 additions and 29 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func BackupCmd(repoFlag string, rt repo.RepoType, getApi BackupApiFn) *cli.Comma
}
defer lr.Close() // nolint:errcheck
mds, err := lr.Datastore("/metadata")
mds, err := lr.Datastore(context.TODO(), "/metadata")
if err != nil {
return xerrors.Errorf("getting metadata datastore: %w", err)
}