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):
# no valid uuid, give it one
uuid = app.getNewUUID(node_type)
if node is None:
# new node
node = node_ctor(uuid=uuid, address=address)
# set up the node
node.setUUID(uuid)
node.setState(state)
node.setConnection(conn)
# set up the connection
conn.setHandler(handler)
# answer
args = (NodeTypes.MASTER, app.uuid, app.pt.getPartitions(),
app.pt.getReplicas(), uuid)
conn.answer(Packets.AcceptIdentification(*args))
# trigger the event
conn.answer(Packets.AcceptIdentification(NodeTypes.MASTER, app.uuid,
app.pt.getPartitions(), app.pt.getReplicas(), uuid))
handler.connectionCompleted(conn)
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