MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / __init__

Method __init__

proxy.py:109–111  ·  view source on GitHub ↗
(self, p: float)

Source from the content-addressed store, hash-verified

107
108class ProbabilisticStrategy(TlsStrategy):
109 def __init__(self, p: float):
110 self.p = p
111 super().__init__()
112
113 def should_intercept(self, server_address: connection.Address) -> bool:
114 return random.uniform(0, 1) < self.p

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected