From b41c344d039c2d7c2714c3fbd3d3bcb9e10d0efe Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Sat, 7 Oct 2023 00:41:09 +0530 Subject: [PATCH] Fix ctx bug --- src/internal/m365/graph/concurrency_middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/m365/graph/concurrency_middleware.go b/src/internal/m365/graph/concurrency_middleware.go index 43cb95142..e1109e51d 100644 --- a/src/internal/m365/graph/concurrency_middleware.go +++ b/src/internal/m365/graph/concurrency_middleware.go @@ -165,7 +165,7 @@ var token int64 = 0 func RegisterRLMetrics(ctx context.Context) { twonce.Do(func() { - cb := func(_ context.Context, o metric.Observer) error { + cb := func(ctx context.Context, o metric.Observer) error { token += int64(ctxLimiter(ctx).Tokens()) o.ObserveInt64(events.RLGauge, token)