From 6021356fb5118c52576aa599dca9c02866d82f3c Mon Sep 17 00:00:00 2001 From: ajatprabha Date: Sat, 22 Oct 2022 19:35:51 +0530 Subject: [PATCH] update doc comment --- x/rate/semaphore.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/rate/semaphore.go b/x/rate/semaphore.go index 32e64b5..98e5627 100644 --- a/x/rate/semaphore.go +++ b/x/rate/semaphore.go @@ -104,6 +104,7 @@ func (s *Semaphore) Release(ctx context.Context) error { return nil } +// LockCount returns the number of currently acquired tokens. func (s *Semaphore) LockCount(ctx context.Context) (int64, error) { return s.rc.ZCard(ctx, semaphoreKey(s.scope)).Result() }