From 5b722b3c73268f7a84bed73fde14ede6a72eb4a9 Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Wed, 18 Feb 2026 22:30:15 -0600 Subject: [PATCH] update rate limit calculation --- pkg/hold/gc/gc.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/hold/gc/gc.go b/pkg/hold/gc/gc.go index 0eb62cb..4c4e036 100644 --- a/pkg/hold/gc/gc.go +++ b/pkg/hold/gc/gc.go @@ -765,10 +765,9 @@ func (gc *GarbageCollector) reconcileMissingRecords(ctx context.Context, missing "total", len(missing)) } - // Throttle to avoid flooding the firehose (~100 records/sec) - if i < len(missing)-1 { - time.Sleep(10 * time.Millisecond) - } + // Throttle: ramp delay based on record index to avoid flooding relays + delay := max(10*time.Millisecond, time.Duration(i)*100*time.Microsecond) + time.Sleep(delay) } if result.RecordsReconciled > 0 {