From 7e0d65e17c1eb095c79133963641df1ab9437d11 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Thu, 24 Oct 2024 16:58:54 +0100 Subject: [PATCH] Increase bastion burst --- internal/feeder/bastion/bastion_feeder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/feeder/bastion/bastion_feeder.go b/internal/feeder/bastion/bastion_feeder.go index 432e77c..c015d9b 100644 --- a/internal/feeder/bastion/bastion_feeder.go +++ b/internal/feeder/bastion/bastion_feeder.go @@ -70,7 +70,7 @@ func FeedBastion(ctx context.Context, c Config, w feeder.Witness) error { w: w, logs: make(map[string]config.Log), witVerifier: c.WitnessVerifier, - limiter: rate.NewLimiter(c.Limits.TotalPerSecond, 1 /* max "burst", but we'll only ask for 1 at a time */), + limiter: rate.NewLimiter(c.Limits.TotalPerSecond, int(c.Limits.TotalPerSecond)), } for _, l := range c.Logs { h.logs[l.ID] = l