Skip to content

Commit

Permalink
Rate limiter update
Browse files Browse the repository at this point in the history
  • Loading branch information
jmakar-s1 committed Oct 4, 2022
1 parent fb3b302 commit bcb570a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewDataSetClient(dataSetUrl string, apiKey string) *DataSetClient {

// TODO Are there alternate approaches to implementing rate limits via the Grafana SDK?
// Consult with Grafana support about this, potentially there's a simplier option.
rateLimiter := rate.NewLimiter(rate.Every(1 * time.Minute), 100) // 100 requests / minute
rateLimiter := rate.NewLimiter(100 * rate.Every(1 * time.Minute), 100) // 100 requests / minute

return &DataSetClient{
dataSetUrl: dataSetUrl,
Expand Down

0 comments on commit bcb570a

Please sign in to comment.