rest: use global context on repository creation

This commit is contained in:
Michael Eischer committed 2020-10-09 22:39:06 +02:00
1 parent 4b0fcaed45
commit 37a5e2d681
5 files changed
+10 -9

No files matched your search

+2 -2
View File
@@ -768,9 +768,9 @@ func create(s string, opts options.Options) (restic.Backend, error) {
case "b2":
return b2.Create(globalOptions.ctx, cfg.(b2.Config), rt)
case "rest":
return rest.Create(cfg.(rest.Config), rt)
return rest.Create(globalOptions.ctx, cfg.(rest.Config), rt)
case "rclone":
return rclone.Create(cfg.(rclone.Config))
return rclone.Create(globalOptions.ctx, cfg.(rclone.Config))
}
debug.Log("invalid repository scheme: %v", s)