fix unthrottle signal bug

This commit is contained in:
XiaoxiWang 2020-09-11 07:22:54 +00:00
parent 084c69b2ad
commit da468df628
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}