fix json in zmq
This commit is contained in:
parent
9af55c9b76
commit
ee7bef7295
@ -1,7 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
import itertools
|
||||
import sys
|
||||
|
||||
import zmq
|
||||
|
||||
|
||||
@ -10,7 +7,7 @@ socket = context.socket(zmq.PUB)
|
||||
socket.bind("tcp://127.0.0.1:5559")
|
||||
|
||||
n = 10
|
||||
msg_body = "a" * n
|
||||
msg_body = "\"" + "a" * n + "\""
|
||||
try:
|
||||
while True:
|
||||
socket.send_string(f"test {msg_body}")
|
||||
|
Loading…
Reference in New Issue
Block a user