forked from TrueCloudLab/restic
init: also apply limiter for non-HTTP backend
This commit is contained in:
parent
6c6dceade3
commit
5f263752d7
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ func innerOpen(ctx context.Context, s string, gopts GlobalOptions, opts options.
|
||||||
|
|
||||||
var be backend.Backend
|
var be backend.Backend
|
||||||
if create {
|
if create {
|
||||||
be, err = factory.Create(ctx, cfg, rt, nil)
|
be, err = factory.Create(ctx, cfg, rt, lim)
|
||||||
} else {
|
} else {
|
||||||
be, err = factory.Open(ctx, cfg, rt, lim)
|
be, err = factory.Open(ctx, cfg, rt, lim)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue