Skip to content

Commit

Permalink
fix revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaddoll committed Oct 16, 2024
1 parent d6f8956 commit ae081bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions service/matching/tasklist/task_list_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"context"
"errors"
"fmt"
"math"
"sort"
"sync"
"sync/atomic"
Expand Down Expand Up @@ -377,11 +376,6 @@ func (c *taskListManagerImpl) GetTask(
// where λ is the average arrival rate and W is the average wait time a task spends in the queue
// here λ is the QPS and W is the average match latency which is 10ms
// so the backlog hint should be backlog count + L.
smoothingNumber := int64(0)
qps := c.qpsTracker.QPS()
if qps > 0.01 {
smoothingNumber += int64(math.Ceil(qps * 0.01))
}
task.BacklogCountHint = c.taskAckManager.GetBacklogCount()
return task, nil
}
Expand Down

0 comments on commit ae081bf

Please sign in to comment.