We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7493d0 commit 82fc917Copy full SHA for 82fc917
1 file changed
typedb/localstack_typedb/utils/h2_proxy.py
@@ -34,13 +34,8 @@ class TcpForwarder:
34
def __init__(self, port: int, host: str = "localhost"):
35
self.port = port
36
self.host = host
37
- self._socket = None
38
- self.connect()
39
-
40
- def connect(self):
41
- if not self._socket:
42
- self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
43
- self._socket.connect((self.host, self.port))
+ self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ self._socket.connect((self.host, self.port))
44
45
def receive_loop(self, callback):
46
while True:
0 commit comments