From 993ce174f13c9896a7e64a2d8f25892db347b2a8 Mon Sep 17 00:00:00 2001 From: Adit Sachde <23707194+aditsachde@users.noreply.github.com> Date: Fri, 27 Sep 2024 22:45:45 -0400 Subject: [PATCH] reduce get-entries limit further to 100 --- internal/ctmonitor/logic.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/ctmonitor/logic.go b/internal/ctmonitor/logic.go index 5c3fd78..1083aa4 100644 --- a/internal/ctmonitor/logic.go +++ b/internal/ctmonitor/logic.go @@ -281,9 +281,10 @@ func (f Fetch) get_entries(ctx context.Context, reqBody io.ReadCloser, query url return nil, 400, fmt.Errorf("start and end must be positive") } - // Limit the number of entries fetched at once to 150 - if end-start > 150 { - end = start + 150 + // Limit the number of entries fetched at once + const limit = 100 + if end-start > limit { + end = start + limit } sth, err := f.getSth(ctx)