From 5f263752d7f41bbec8e889e3e9bb27c5a20ad2ff Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Wed, 24 Apr 2024 20:42:30 +0200 Subject: [PATCH] init: also apply limiter for non-HTTP backend --- cmd/restic/global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index c93fb4bce..eded479ad 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -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) }