Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
b9e56b99
Commit
b9e56b99
authored
Apr 20, 2018
by
Samuel GAIST
Browse files
[scripts][worker] Use setsocket_optstring when configuring with string parameter
parent
92e9fa21
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/scripts/worker.py
View file @
b9e56b99
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment