From e837423cb7046f3d2807e2b3a63f6527d2f54105 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 09:39:46 +0100 Subject: [PATCH] ax(node): replace prose comment with usage example on PeerRateLimiter.Allow Co-Authored-By: Charon --- pkg/node/transport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/node/transport.go b/pkg/node/transport.go index 57c441f..1aed486 100644 --- a/pkg/node/transport.go +++ b/pkg/node/transport.go @@ -134,7 +134,7 @@ func NewPeerRateLimiter(maxTokens, refillRate int) *PeerRateLimiter { } } -// Allow checks if a message is allowed and consumes a token if so +// if limiter.Allow() { process(msg) } else { drop(msg) } func (r *PeerRateLimiter) Allow() bool { r.mutex.Lock() defer r.mutex.Unlock()