Agent: Rename _open_socket_to_server -> _send_remove_from_waitlist_control_message_to_relay

This commit is contained in:
Shreya Malviya 2022-09-08 13:39:45 +05:30 committed by Mike Salvatore
parent 7661027c6c
commit cb4af415c1
1 changed files with 2 additions and 2 deletions

View File

@ -41,14 +41,14 @@ def find_server(servers: Iterable[str]) -> Optional[str]:
def send_remove_from_waitlist_control_message_to_relays(servers: Iterable[str]):
for server in servers:
t = create_daemon_thread(
target=_open_socket_to_server,
target=_send_remove_from_waitlist_control_message_to_relay,
name="SendRemoveFromWaitlistControlMessageToRelaysThread",
args=(server,),
)
t.start()
def _open_socket_to_server(server: str):
def _send_remove_from_waitlist_control_message_to_relay(server: str):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as d_socket:
d_socket.settimeout(MEDIUM_REQUEST_TIMEOUT)