Skip to content

Commit 7736a97

Browse files
committed
fix redundant zmq.Context() Instances
1 parent 90f9cad commit 7736a97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

concore_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, port_type, address, zmq_socket_type, context):
2020
port_type: "bind" or "connect"
2121
address: ZeroMQ address (e.g., "tcp://*:5555")
2222
zmq_socket_type: zmq.REQ, zmq.REP, zmq.PUB, zmq.SUB etc.
23-
context: shared zmq.Context() for the process (do not create one per port)
23+
context: shared zmq.Context() for the process
2424
"""
2525
self.socket = context.socket(zmq_socket_type)
2626
self.port_type = port_type # "bind" or "connect"

0 commit comments

Comments
 (0)