Skip to content

Commit

Permalink
Added a comment explaining the code change
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi-salunkhe-mettle committed Aug 1, 2024
1 parent 5169341 commit 586625c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions endpointmanager/pkg/chplquerier/chplquerier.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func makeCHPLURL(path string, queryArgs map[string]string, pageSize int, pageNum
func getJSON(ctx context.Context, client *http.Client, chplURL *url.URL, userAgent string) ([]byte, error) {
// request ceritified products list
// Adds a short delay between request
// LANTERN-721: Increased the delay to 1.2 seconds since the CHPL API rate limit is one request per second
time.Sleep(time.Duration(1200 * time.Millisecond))
req, err := http.NewRequest("GET", chplURL.String(), nil)
if err != nil {
Expand Down

0 comments on commit 586625c

Please sign in to comment.