From 61631b21db3a4204bef38431799244fda90e7e4d Mon Sep 17 00:00:00 2001 From: Brian Muller Date: Sun, 19 Jan 2014 14:12:04 -0500 Subject: [PATCH] fixed bug in router initialization --- kademlia/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kademlia/protocol.py b/kademlia/protocol.py index a9c06e4..e64e9cc 100644 --- a/kademlia/protocol.py +++ b/kademlia/protocol.py @@ -9,7 +9,7 @@ from kademlia.log import Logger class KademliaProtocol(RPCProtocol): def __init__(self, sourceNode, storage, ksize): RPCProtocol.__init__(self) - self.router = RoutingTable(self, sourceNode, ksize) + self.router = RoutingTable(self, ksize, sourceNode) self.storage = storage self.sourceID = sourceNode.id self.log = Logger(system=self)