fix unthrottle signal bug
This commit is contained in:
parent
084c69b2ad
commit
da468df628
|
@ -326,7 +326,6 @@ namespace ThrottleApi {
|
|||
loop {
|
||||
try {
|
||||
state Standalone<RangeResultRef> tags = wait(tr.getRange(begin, end, 1000));
|
||||
state uint64_t unthrottledTags = 0;
|
||||
uint64_t manualUnthrottledTags = 0;
|
||||
for(auto tag : tags) {
|
||||
if(onlyExpiredThrottles) {
|
||||
|
@ -353,7 +352,7 @@ namespace ThrottleApi {
|
|||
wait(updateThrottleCount(&tr, -manualUnthrottledTags));
|
||||
}
|
||||
|
||||
if(unthrottledTags > 0) {
|
||||
if(removed) {
|
||||
signalThrottleChange(tr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue