mirror of
https://github.com/restic/restic.git
synced 2026-10-26 02:08:55 +00:00
init: also apply limiter for non-HTTP backend
This commit is contained in:
1 parent
6c6dceade3
commit
5f263752d7
1 file changed
+1
-1
@@ -598,7 +598,7 @@ func innerOpen(ctx context.Context, s string, gopts GlobalOptions, opts options.
|
||||
|
||||
var be backend.Backend
|
||||
if create {
|
||||
be, err = factory.Create(ctx, cfg, rt, nil)
|
||||
be, err = factory.Create(ctx, cfg, rt, lim)
|
||||
} else {
|
||||
be, err = factory.Open(ctx, cfg, rt, lim)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user