Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewControlMessageRateLimiter ¶
func NewControlMessageRateLimiter(limit rate.Limit, burst int) p2p.BasicRateLimiter
NewControlMessageRateLimiter returns a new ControlMessageRateLimiter. The cleanup loop will be started in a separate goroutine and should be stopped by calling Close.
Types ¶
type ControlMessageRateLimiter ¶
type ControlMessageRateLimiter struct {
*ratelimiter.RateLimiter
}
ControlMessageRateLimiter rate limiter that rate limits the amount of
Click to show internal directories.
Click to hide internal directories.