Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
9c0a0c9e
Commit
9c0a0c9e
authored
Jun 24, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: code cleanup
parent
cf413589
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
neo/client/app.py
neo/client/app.py
+0
-4
neo/client/pool.py
neo/client/pool.py
+7
-8
No files found.
neo/client/app.py
View file @
9c0a0c9e
...
...
@@ -115,10 +115,6 @@ class Application(object):
# _connecting_to_master_node is used to prevent simultaneous master
# node connection attemps
self
.
_connecting_to_master_node
=
Lock
()
# _nm ensure exclusive access to the node manager
lock
=
Lock
()
self
.
_nm_acquire
=
lock
.
acquire
self
.
_nm_release
=
lock
.
release
self
.
compress
=
compress
registerLiveDebugger
(
on_log
=
self
.
log
)
...
...
neo/client/pool.py
View file @
9c0a0c9e
...
...
@@ -123,14 +123,13 @@ class ConnectionPool(object):
cell_list
.
sort
(
key
=
self
.
getCellSortKey
)
for
cell
in
cell_list
:
node
=
cell
.
getNode
()
if
node
.
isRunning
():
conn
=
getConnForNode
(
node
)
if
conn
is
not
None
:
yield
(
node
,
conn
)
# Re-check if node is running, as our knowledge of its
# state can have changed during connection attempt.
elif
node
.
isRunning
():
new_cell_list
.
append
(
cell
)
conn
=
getConnForNode
(
node
)
if
conn
is
not
None
:
yield
node
,
conn
# Re-check if node is running, as our knowledge of its
# state can have changed during connection attempt.
elif
node
.
isRunning
():
new_cell_list
.
append
(
cell
)
if
not
new_cell_list
:
break
cell_list
=
new_cell_list
...
...
Write
Preview
Markdown
is supported
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