Spaces:
Running
Running
Update Azure Blob Service Config
Browse files
externals/storages/azure_blob.py
CHANGED
|
@@ -27,13 +27,13 @@ else:
|
|
| 27 |
|
| 28 |
async def get_blob_service_client() -> BlobServiceClient:
|
| 29 |
# global _blob_service_client, _credential
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
if _blob_service_client is None:
|
| 32 |
-
# _credential = DefaultAzureCredential()
|
| 33 |
-
_blob_service_client = BlobServiceClient(
|
| 34 |
-
account_url=AzureBlobConstants.ENDPOINT,
|
| 35 |
-
credential=credential,
|
| 36 |
-
)
|
| 37 |
logger.info("✅ Azure BlobServiceClient initialized")
|
| 38 |
|
| 39 |
return _blob_service_client
|
|
|
|
| 27 |
|
| 28 |
async def get_blob_service_client() -> BlobServiceClient:
|
| 29 |
# global _blob_service_client, _credential
|
| 30 |
+
# _credential = DefaultAzureCredential()
|
| 31 |
+
_blob_service_client = BlobServiceClient(
|
| 32 |
+
account_url=AzureBlobConstants.ENDPOINT,
|
| 33 |
+
credential=credential,
|
| 34 |
+
)
|
| 35 |
|
| 36 |
+
if _blob_service_client is not None:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
logger.info("✅ Azure BlobServiceClient initialized")
|
| 38 |
|
| 39 |
return _blob_service_client
|