Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iliya Manolov
neoppod
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):
...
@@ -115,10 +115,6 @@ class Application(object):
# _connecting_to_master_node is used to prevent simultaneous master
# _connecting_to_master_node is used to prevent simultaneous master
# node connection attemps
# node connection attemps
self
.
_connecting_to_master_node
=
Lock
()
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
self
.
compress
=
compress
registerLiveDebugger
(
on_log
=
self
.
log
)
registerLiveDebugger
(
on_log
=
self
.
log
)
...
...
neo/client/pool.py
View file @
9c0a0c9e
...
@@ -123,14 +123,13 @@ class ConnectionPool(object):
...
@@ -123,14 +123,13 @@ class ConnectionPool(object):
cell_list
.
sort
(
key
=
self
.
getCellSortKey
)
cell_list
.
sort
(
key
=
self
.
getCellSortKey
)
for
cell
in
cell_list
:
for
cell
in
cell_list
:
node
=
cell
.
getNode
()
node
=
cell
.
getNode
()
if
node
.
isRunning
():
conn
=
getConnForNode
(
node
)
conn
=
getConnForNode
(
node
)
if
conn
is
not
None
:
if
conn
is
not
None
:
yield
node
,
conn
yield
(
node
,
conn
)
# Re-check if node is running, as our knowledge of its
# Re-check if node is running, as our knowledge of its
# state can have changed during connection attempt.
# state can have changed during connection attempt.
elif
node
.
isRunning
():
elif
node
.
isRunning
():
new_cell_list
.
append
(
cell
)
new_cell_list
.
append
(
cell
)
if
not
new_cell_list
:
if
not
new_cell_list
:
break
break
cell_list
=
new_cell_list
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