diff --git a/ai_web_common/rpc/core.py b/ai_web_common/rpc/core.py index e2f20779317f2a2e577bf2fac61855f536f0b0d4..a6785a246e036376f1450578aadee51f221be64e 100644 --- a/ai_web_common/rpc/core.py +++ b/ai_web_common/rpc/core.py @@ -122,13 +122,6 @@ def _get_pool(cls, host, port, **kwargs): return p -def _split_host_port(netloc): - if ':' not in netloc: - return netloc, 80 - host, port = netloc.split(':', 1) - return host, int(port) - - def _ssl_context(cert_path, key_path, ca_path): context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) context.verify_mode = ssl.CERT_REQUIRED