fix: 补齐审查清单里还没落地的交互和代理复测
This commit is contained in:
@@ -28,6 +28,16 @@ _last_flush: dict[str, float] = {}
|
||||
|
||||
def attach_loop(loop: asyncio.AbstractEventLoop) -> None:
|
||||
global _loop
|
||||
if _loop is loop:
|
||||
return
|
||||
for handle in list(_pending.values()):
|
||||
handle.cancel()
|
||||
_pending.clear()
|
||||
_inflight.clear()
|
||||
_dirty.clear()
|
||||
_urgent.clear()
|
||||
_last_flush.clear()
|
||||
_clients.clear()
|
||||
_loop = loop
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user