Skip to content

Commit bcb570a

Browse files
committed
Rate limiter update
1 parent fb3b302 commit bcb570a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/plugin/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func NewDataSetClient(dataSetUrl string, apiKey string) *DataSetClient {
3838

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

4343
return &DataSetClient{
4444
dataSetUrl: dataSetUrl,

0 commit comments

Comments
 (0)