Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-ng committed Nov 23, 2020
1 parent ae1936a commit 2df2ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions priority/priorityRateLimiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func (p *PriorityLimiter) Finish() {
close(it.Done)
}

// only used in tests
func (p *PriorityLimiter) waitListSize() int {
p.mu.Lock()
defer p.mu.Unlock()
Expand Down
1 change: 1 addition & 0 deletions rateLimiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (l *Limiter) Finish() {
close(w.done)
}

// only used in tests
func (l *Limiter) waitListSize() int {
l.mu.Lock()
defer l.mu.Unlock()
Expand Down

0 comments on commit 2df2ec6

Please sign in to comment.