This commit is contained in:
yumoqing 2026-02-13 10:52:24 +08:00
parent 521498a18d
commit 0aeb1df05f

View File

@ -38,7 +38,7 @@ async def zmq_subcribe(special_key: str, zmq_url='tcp://127.0.0.1:5555', callbac
ctx.term()
return content
async def zmq_publish(key, content, zmq_url):
async def zmq_publish(key, content, zmq_url='tcp://127.0.0.1:5555'):
ctx = Context()
sock = ctx.socket(zmq.PUB)
monitor = sock.get_monitor_socket()