Refactor client initialization to use global client setup in get_client and get_client_creds functions
This commit is contained in:
@@ -46,11 +46,11 @@ def is_client_ready():
|
||||
|
||||
def get_client():
|
||||
if _client is None:
|
||||
init_clob_client()
|
||||
init_global_client()
|
||||
return _client
|
||||
|
||||
|
||||
def get_client_creds():
|
||||
if _client_creds is None:
|
||||
init_clob_client()
|
||||
init_global_client()
|
||||
return _client_creds
|
||||
|
||||
Reference in New Issue
Block a user