Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
  • Loading branch information
zhangchiqing and peterargue authored Jan 29, 2024
1 parent 680e815 commit 4469cf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/collection/ingest/rate_limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ func (r *AddressRateLimiter) GetAddresses() []flow.Address {

// GetLimitConfig get the limit config
func (r *AddressRateLimiter) GetLimitConfig() (rate.Limit, int) {
r.mu.RLock()
defer r.mu.RUnlock()
return r.limit, r.burst
}

Expand Down

0 comments on commit 4469cf0

Please sign in to comment.