Commit b9e56b99 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[scripts][worker] Use setsocket_optstring when configuring with string parameter

parent 92e9fa21
......@@ -138,7 +138,7 @@ def connect_to_scheduler(address, name):
# Starts our 0MQ server
context = zmq.Context()
socket = context.socket(zmq.DEALER)
socket.setsockopt(zmq.IDENTITY, name)
socket.setsockopt_string(zmq.IDENTITY, name)
if address.find('://') < 0:
address = 'tcp://' + address
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment