Skip to content

Commit

Permalink
fix(app): rename app_service to app (#224)
Browse files Browse the repository at this point in the history
Because

- consistency with other service client

This commit

- rename app_service to app
  • Loading branch information
joremysh authored Oct 12, 2024
1 parent ccfc9fe commit f33aff3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions instill/clients/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ def __init__(
"Instill Artifact is not serving, Artifact functionalities will not work"
)

self.app_service = AppClient(
self.app = AppClient(
api_token=api_token,
url=url,
secure=secure,
lookup_func=self._lookup_namespace_uid,
requester_id=requester_id,
async_enabled=async_enabled,
)
if not self.app_service.is_serving():
if not self.app.is_serving():
Logger.w("Instill App is not serving, App functionalities will not work")

def _lookup_namespace_uid(self, namespace_id: str):
Expand All @@ -96,14 +96,14 @@ def close(self):
self.pipeline.close()
self.model.close()
self.artifact.close()
self.app_service.close()
self.app.close()

async def async_close(self):
self.mgmt.async_close()
self.pipeline.async_close()
self.model.async_close()
self.artifact.async_close()
self.app_service.async_close()
self.app.async_close()

def get_mgmt(self) -> MgmtClient:
return self.mgmt
Expand All @@ -118,7 +118,7 @@ def get_model(self) -> ModelClient:
return self.model

def get_app(self) -> AppClient:
return self.app_service
return self.app


def init_core_client(
Expand Down

0 comments on commit f33aff3

Please sign in to comment.