Skip to content

Commit

Permalink
Set union
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Oct 26, 2024
1 parent c32f8db commit 7f6eb1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rpcClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import http.client as httplib
import ssl
import threading
from typing import Union, Optional

from constants import DEFAULT_PROTOCOL_VERSION, MINIMUM_FEE
from misc import getCallerName, getFunctionName, printException, printDbg, now, timeThis
Expand Down Expand Up @@ -50,6 +51,8 @@ def __init__(self, rpc_protocol: str, rpc_host: str, rpc_user: str, rpc_password
host = rpc_host
port = None

self.httpConnection: Union[httplib.HTTPConnection, httplib.HTTPSConnection]

if rpc_protocol == "https":
self.httpConnection = httplib.HTTPSConnection(host, port, timeout=20, context=ssl._create_unverified_context())
else:
Expand Down

0 comments on commit 7f6eb1c

Please sign in to comment.