init: also apply limiter for non-HTTP backend

This commit is contained in:
Michael Eischer committed 2024-04-24 20:42:30 +02:00
1 parent 6c6dceade3
commit 5f263752d7
1 file changed
+1 -1
+1 -1
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)
}