Skip to content
Snippets Groups Projects
Commit 04cd2b0c authored by ale's avatar ale
Browse files

Remove unused utility function

parent e7957645
No related branches found
No related tags found
1 merge request!1Refactor rpc library
Pipeline #11100 passed
...@@ -122,13 +122,6 @@ def _get_pool(cls, host, port, **kwargs): ...@@ -122,13 +122,6 @@ def _get_pool(cls, host, port, **kwargs):
return p 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): def _ssl_context(cert_path, key_path, ca_path):
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.verify_mode = ssl.CERT_REQUIRED context.verify_mode = ssl.CERT_REQUIRED
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment