[#1636] blobovniczatree: Use RebuildLimiter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
ceff5e1f6a
commit
b9360be1dc
4 changed files with 73 additions and 9 deletions
|
@ -27,6 +27,12 @@ type ConcurrencyLimiter interface {
|
|||
AcquireWorkSlot(ctx context.Context) (ReleaseFunc, error)
|
||||
}
|
||||
|
||||
type RateLimiter interface {
|
||||
ReadRequest(context.Context) (ReleaseFunc, error)
|
||||
WriteRequest(context.Context) (ReleaseFunc, error)
|
||||
}
|
||||
|
||||
type RebuildLimiter interface {
|
||||
ConcurrencyLimiter
|
||||
RateLimiter
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue