[#1636] shard: Add limiter usage

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2025-02-05 15:57:27 +03:00
parent 0d4c6af899
commit acf8012502
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0
22 changed files with 390 additions and 67 deletions

View file

@ -79,6 +79,10 @@ var (
noopLimiterInstance = &noopLimiter{}
)
func NewNoopLimiter() Limiter {
return &noopLimiter{}
}
type noopLimiter struct{}
func (n *noopLimiter) ReadRequest(context.Context) (ReleaseFunc, error) {