fix: shorter variable names

This commit is contained in:
Roman 2025-03-06 02:58:13 +00:00
parent 201f72097d
commit c233edda98
No known key found for this signature in database
GPG Key ID: BB3828275C58EFF1

View File

@ -6,9 +6,9 @@ logger = get_custom_logger(__name__)
class REST(BaseClient):
def __init__(self, rest_port, rest_host="127.0.0.1"):
self._rest_port = rest_port
self._rest_host = rest_host
def __init__(self, port, host="127.0.0.1"):
self._rest_port = port
self._rest_host = host
def rest_call(self, method, endpoint, payload=None):
url = f"http://{self._rest_host}:{self._rest_port}/{endpoint}"