Skip to content

Commit

Permalink
reduce get-entries limit further to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
aditsachde committed Sep 28, 2024
1 parent 954b284 commit 993ce17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/ctmonitor/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 993ce17

Please sign in to comment.