mirror of
https://github.com/restic/restic.git
synced 2026-10-13 05:27:13 +00:00
rest: use global context on repository creation
This commit is contained in:
1 parent
4b0fcaed45
commit
37a5e2d681
5 files changed
+10
-9
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user