fixed bug in router initialization

This commit is contained in:
Brian Muller 2014-01-19 14:12:04 -05:00
parent 29c9afbc03
commit 61631b21db

View File

@ -9,7 +9,7 @@ from kademlia.log import Logger
class KademliaProtocol(RPCProtocol): class KademliaProtocol(RPCProtocol):
def __init__(self, sourceNode, storage, ksize): def __init__(self, sourceNode, storage, ksize):
RPCProtocol.__init__(self) RPCProtocol.__init__(self)
self.router = RoutingTable(self, sourceNode, ksize) self.router = RoutingTable(self, ksize, sourceNode)
self.storage = storage self.storage = storage
self.sourceID = sourceNode.id self.sourceID = sourceNode.id
self.log = Logger(system=self) self.log = Logger(system=self)