mirror of
https://github.com/octoleo/restic.git
synced 2025-02-02 11:58:26 +00:00
init: also apply limiter for non-HTTP backend
This commit is contained in:
parent
6c6dceade3
commit
5f263752d7
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user