2
2
mirror of https://github.com/octoleo/restic.git synced 2024-09-22 03:49:02 +00:00

init: also apply limiter for non-HTTP backend

This commit is contained in:
Michael Eischer 2024-04-24 20:42:30 +02:00
parent 6c6dceade3
commit 5f263752d7

View File

@ -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)
}