[Fix] Fix uvloop get_event_loop() is not suitable for 0.22.x (#13612)

Signed-off-by: lzy <tomlzy213@gmail.com>
Co-authored-by: lzy <tomlzy213@gmail.com>
This commit is contained in:
Zhi Yiliu
2025-11-25 01:20:00 +08:00
committed by GitHub
parent 98b38de3f2
commit a95a38078b
9 changed files with 32 additions and 20 deletions

View File

@@ -533,8 +533,7 @@ class Engine(EngineBase):
zmq_handles=zmq_handles,
flush_cache=flush_cache,
)
loop = asyncio.get_event_loop()
return loop.run_until_complete(
return self.loop.run_until_complete(
self.tokenizer_manager.update_weights_from_ipc(obj, None)
)