mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-22 21:27:43 +08:00
🐛 fix 通道类回调函数在进程间传递时无法序列号的问题
This commit is contained in:
parent
7107d03b72
commit
2f8999b5ad
@ -51,7 +51,7 @@ async def _():
|
|||||||
nbp_chan.send("send by main")
|
nbp_chan.send("send by main")
|
||||||
|
|
||||||
|
|
||||||
@mbp_chan.on_receive()
|
# @mbp_chan.on_receive()
|
||||||
@nbp_chan.on_receive()
|
# @nbp_chan.on_receive()
|
||||||
async def _(data):
|
# async def _(data):
|
||||||
print("主进程收到数据", data)
|
# print("主进程收到数据", data)
|
||||||
|
@ -18,10 +18,10 @@ __plugin_meta__ = PluginMetadata(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
chan = get_channel("nonebot-passive")
|
# chan = get_channel("nonebot-passive")
|
||||||
|
#
|
||||||
|
#
|
||||||
@chan.on_receive()
|
# @chan.on_receive()
|
||||||
async def _(d):
|
# async def _(d):
|
||||||
print("CRT子进程接收到数据:", d)
|
# print("CRT子进程接收到数据:", d)
|
||||||
chan.send("CRT子进程已接收到数据")
|
# chan.send("CRT子进程已接收到数据")
|
||||||
|
Loading…
Reference in New Issue
Block a user