Ejemplo n.º 1
0
 def _patched_sender(self):
     ksender = KRPC_Sender(TreeRoutingTable, 2**50)
     ksender.transport = HollowTransport()
     # Start the protocol to simulate
     # a regular environment
     rate_limited_proto = RateLimiter_Patcher(ksender)
     rate_limited_proto.startProtocol()
     return rate_limited_proto
Ejemplo n.º 2
0
 def _patched_sender(self):
     ksender = KRPC_Sender(TreeRoutingTable, 2**50)
     ksender.transport = HollowTransport()
     # Start the protocol to simulate
     # a regular environment
     rate_limited_proto = RateLimiter_Patcher(ksender)
     rate_limited_proto.startProtocol()
     return rate_limited_proto