mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-17 13:07:32 +02:00
Remove redundant method from peer client (#1329)
This commit is contained in:
parent
afa34fd24c
commit
44a669c436
1 changed files with 1 additions and 11 deletions
|
|
@ -42,7 +42,7 @@ class PeerClient(object):
|
|||
self.tor_proxy_ip = tor_proxy_ip
|
||||
self.tor_proxy_port = tor_proxy_port
|
||||
|
||||
def make_connection(self, address: PeerAddress):
|
||||
def connect_address(self, address: PeerAddress):
|
||||
logger.info('Making connection to {}'.format(address))
|
||||
try:
|
||||
peer_socket = self.get_socket()
|
||||
|
|
@ -59,16 +59,6 @@ class PeerClient(object):
|
|||
logger.exception('Failed to make connection to {}'.format(address))
|
||||
raise
|
||||
|
||||
def connect_address(self, address: PeerAddress):
|
||||
"""Connect to new address."""
|
||||
# logger.info('Connecting to peer with address {}'.format(address))
|
||||
# threading.Thread(
|
||||
# target=self.make_connection,
|
||||
# args=(address,),
|
||||
# name="peer_client_connection_thread",
|
||||
# ).start()
|
||||
self.make_connection(address)
|
||||
|
||||
def handle_connection(
|
||||
self,
|
||||
peer_socket: socket.socket,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue