helper function.
This commit is contained in:
@@ -96,8 +96,8 @@ class Client:
|
|||||||
return Response(msg)
|
return Response(msg)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
#def send_receive_callsign(self, req: Request, callsign: str, timeout: int = 300) -> Optional[Response]:
|
def send_receive_callsign(self, req: Request, callsign: str, timeout: int = 300) -> Optional[Response]:
|
||||||
# for conn in self.connection_map
|
return self.send_and_receive(req, self.connection_for(callsign), timeout=timeout)
|
||||||
|
|
||||||
def single_connect_send_receive(self, dest: str, req: Request, timeout: int = 300) -> Optional[Response]:
|
def single_connect_send_receive(self, dest: str, req: Request, timeout: int = 300) -> Optional[Response]:
|
||||||
conn = self.new_connection(dest)
|
conn = self.new_connection(dest)
|
||||||
|
|||||||
Reference in New Issue
Block a user