Use request_id as the identifier when removing a request

Signed-off-by: weichen <calvin_zhu0210@outlook.com>
This commit is contained in:
weichen 2025-12-24 16:30:07 +08:00
parent 0000d981d2
commit 0431508388

View File

@ -132,7 +132,7 @@ class WeightedScoreSorter:
def __eq__(self, other_request_weighted_score: object) -> bool:
if not isinstance(other_request_weighted_score, WeightedScoreSorter):
return NotImplemented
return self.weighted_score == other_request_weighted_score.weighted_score
return self.request.request_id == other_request_weighted_score.request.request_id
def __update_stats(self):
self.wait_time = time.time() - self.request_arrival_time