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
Carlos Ramos Carreño
neoppod
Commits
5d7dc240
Commit
5d7dc240
authored
Dec 26, 2011
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use super() to walk up class hierarchy.
parent
89387089
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
neo/master/handlers/election.py
neo/master/handlers/election.py
+3
-3
No files found.
neo/master/handlers/election.py
View file @
5d7dc240
...
@@ -37,7 +37,7 @@ class ClientElectionHandler(MasterHandler):
...
@@ -37,7 +37,7 @@ class ClientElectionHandler(MasterHandler):
# connection in progress
# connection in progress
self
.
app
.
unconnected_master_node_set
.
remove
(
addr
)
self
.
app
.
unconnected_master_node_set
.
remove
(
addr
)
self
.
app
.
negotiating_master_node_set
.
add
(
addr
)
self
.
app
.
negotiating_master_node_set
.
add
(
addr
)
MasterHandler
.
connectionStarted
(
self
,
conn
)
super
(
ClientElectionHandler
,
self
).
connectionStarted
(
conn
)
def
connectionFailed
(
self
,
conn
):
def
connectionFailed
(
self
,
conn
):
addr
=
conn
.
getAddress
()
addr
=
conn
.
getAddress
()
...
@@ -48,11 +48,11 @@ class ClientElectionHandler(MasterHandler):
...
@@ -48,11 +48,11 @@ class ClientElectionHandler(MasterHandler):
# connection never success, node is still in unknown state
# connection never success, node is still in unknown state
self
.
app
.
negotiating_master_node_set
.
discard
(
addr
)
self
.
app
.
negotiating_master_node_set
.
discard
(
addr
)
self
.
app
.
unconnected_master_node_set
.
add
(
addr
)
self
.
app
.
unconnected_master_node_set
.
add
(
addr
)
MasterHandler
.
connectionFailed
(
self
,
conn
)
super
(
ClientElectionHandler
,
self
).
connectionFailed
(
conn
)
def
connectionCompleted
(
self
,
conn
):
def
connectionCompleted
(
self
,
conn
):
conn
.
ask
(
Packets
.
AskPrimary
())
conn
.
ask
(
Packets
.
AskPrimary
())
MasterHandler
.
connectionCompleted
(
self
,
conn
)
super
(
ClientElectionHandler
,
self
).
connectionCompleted
(
conn
)
def
connectionLost
(
self
,
conn
,
new_state
):
def
connectionLost
(
self
,
conn
,
new_state
):
addr
=
conn
.
getAddress
()
addr
=
conn
.
getAddress
()
...
...
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