Commit 6c9dccb2 authored by Vincent Pelletier's avatar Vincent Pelletier

Don't use * magic when there is no need to.

Also, drop captain-obvious comments.
parent bcac3c8a
...@@ -52,19 +52,13 @@ class IdentificationHandler(MasterHandler): ...@@ -52,19 +52,13 @@ class IdentificationHandler(MasterHandler):
# no valid uuid, give it one # no valid uuid, give it one
uuid = app.getNewUUID(node_type) uuid = app.getNewUUID(node_type)
if node is None: if node is None:
# new node
node = node_ctor(uuid=uuid, address=address) node = node_ctor(uuid=uuid, address=address)
# set up the node
node.setUUID(uuid) node.setUUID(uuid)
node.setState(state) node.setState(state)
node.setConnection(conn) node.setConnection(conn)
# set up the connection
conn.setHandler(handler) conn.setHandler(handler)
# answer conn.answer(Packets.AcceptIdentification(NodeTypes.MASTER, app.uuid,
args = (NodeTypes.MASTER, app.uuid, app.pt.getPartitions(), app.pt.getPartitions(), app.pt.getReplicas(), uuid))
app.pt.getReplicas(), uuid)
conn.answer(Packets.AcceptIdentification(*args))
# trigger the event
handler.connectionCompleted(conn) handler.connectionCompleted(conn)
app.broadcastNodesInformation([node]) app.broadcastNodesInformation([node])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment