From 5f1c9bb10f18c171b3f528b95a89b4b77db03679 Mon Sep 17 00:00:00 2001 From: nolouch Date: Tue, 9 Apr 2024 15:48:35 +0800 Subject: [PATCH] fix Signed-off-by: nolouch --- pkg/ratelimit/concurrency_limiter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ratelimit/concurrency_limiter.go b/pkg/ratelimit/concurrency_limiter.go index 5dee4c92237..af768461478 100644 --- a/pkg/ratelimit/concurrency_limiter.go +++ b/pkg/ratelimit/concurrency_limiter.go @@ -80,7 +80,7 @@ func (l *ConcurrencyLimiter) setLimit(limit uint64) { l.limit = limit } -// old interface. only used in the ratelimiter package. +// GetRunningTasksNum returns the number of running tasks. func (l *ConcurrencyLimiter) GetRunningTasksNum() uint64 { l.mu.Lock() defer l.mu.Unlock()