Cleanup codebase: removed unnecessary code/logic (#298)
This commit is contained in:
@@ -41,12 +41,16 @@ class RouterManager:
|
||||
self.send_to_detokenizer.send_pyobj(obj)
|
||||
|
||||
# async sleep for receiving the subsequent request and avoiding cache miss
|
||||
slept = False
|
||||
if len(out_pyobjs) != 0:
|
||||
has_finished = any([obj.finished for obj in out_pyobjs])
|
||||
if has_finished:
|
||||
await asyncio.sleep(self.extend_dependency_time)
|
||||
if self.extend_dependency_time > 0:
|
||||
slept = True
|
||||
await asyncio.sleep(self.extend_dependency_time)
|
||||
|
||||
await asyncio.sleep(0.0006)
|
||||
if not slept:
|
||||
await asyncio.sleep(0.0006)
|
||||
|
||||
async def loop_for_recv_requests(self):
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user