Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.backend.python
Commits
851dc6bd
Commit
851dc6bd
authored
Jul 24, 2019
by
Samuel GAIST
Browse files
[scripts][execute] Cleanup db_addr handling
parent
49ce9738
Changes
1
Show whitespace changes
Inline
Side-by-side
beat/backend/python/scripts/execute.py
View file @
851dc6bd
...
...
@@ -180,10 +180,11 @@ def main():
# Creates the 0MQ socket for communication with the databases (if necessary)
db_socket
=
None
if
args
[
"<db_addr>"
]:
db_addr
=
args
.
get
(
"<db_addr>"
)
if
db_addr
:
db_socket
=
context
.
socket
(
zmq
.
PAIR
)
db_socket
.
connect
(
args
[
"<
db_addr
>"
]
)
logger
.
debug
(
"zmq client connected to db `%s'"
,
args
[
"<
db_addr
>"
]
)
db_socket
.
connect
(
db_addr
)
logger
.
debug
(
"zmq client connected to db `%s'"
,
db_addr
)
loop_socket
=
None
loop_addr
=
args
.
get
(
"--loop"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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