Ejemplo n.º 1
0
 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 ()
Ejemplo n.º 2
0
 def setup_peer_backends(self) -> Tuple[BasePeerBackend, ...]:
     return (
         DiscoveryPeerBackend(self.event_bus),
         BootnodesPeerBackend(self.event_bus),
     )