Skip to content

Commit

Permalink
optim: init MlpRestClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Anastasiia Ikonnikova committed Jun 10, 2024
1 parent 3d9cf3b commit d73e84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlp_sdk/transport/MlpClientSDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __connect(self):
previous_channel.close()


class MlpRestClient:
class MlpRestClient(ApiClient):

def __init__(self, url: Optional[str] = None, token=None, config=CONFIG):
self.config = config
Expand All @@ -201,7 +201,7 @@ def __init__(self, url: Optional[str] = None, token=None, config=CONFIG):
self.log.debug("Creating mpl client with url " + self.rest_url)

configuration = Configuration(host=self.rest_url)
self.api_client = ApiClient(configuration, "MLP-API-KEY", self.client_token)
super().__init__(configuration, "MLP-API-KEY", self.client_token)


class MlpClientException(Exception):
Expand Down

0 comments on commit d73e84f

Please sign in to comment.