def setup_peer_backends(self) -> Tuple[BasePeerBackend, ...]: if self.has_event_bus: return ( DiscoveryPeerBackend(self.get_event_bus()), BootnodesPeerBackend(self.get_event_bus()), ) else: self.logger.warning("No event bus configured for peer pool.") return ()
def setup_peer_backends(self) -> Tuple[BasePeerBackend, ...]: return ( DiscoveryPeerBackend(self.event_bus), BootnodesPeerBackend(self.event_bus), )