def start(self): from p2p import lookup lookup.init(lookup_method=self.lookup_in_dht, observe_method=self.observe_dht_node, process_method=self.process_idurl) lookup.start(count=5, consume=False) return True
def start(self): from p2p import lookup lookup.init(lookup_method=lookup.lookup_in_dht, observe_method=lookup.observe_dht_node, process_method=lookup.process_idurl) lookup.start(count=2, consume=False) return True