mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-30 08:49:51 +00:00
✨ 对通道类添加类型检查和泛型
This commit is contained in:
@ -197,7 +197,6 @@ shared_memory: Optional[KeyValueStore] = None
|
||||
if IS_MAIN_PROCESS:
|
||||
shared_memory = GlobalKeyValueStore.get_instance()
|
||||
|
||||
|
||||
@shared_memory.passive_chan.on_receive(lambda d: d[0] == "get")
|
||||
def on_get(data: tuple[str, str, any, Channel]):
|
||||
data[3].send(shared_memory.get(data[1], data[2]))
|
||||
|
Reference in New Issue
Block a user