Skip to content

Commit

Permalink
Merge branch 'feat/integrate-opendal-storage' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
laipz8200 committed Dec 10, 2024
2 parents 6a404a0 + 600cbbf commit 15d28ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/extensions/ext_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ def get_storage_factory(storage_type: str) -> Callable[[], BaseStorage]:

# For R2
if "endpoint" in kwargs and "r2.cloudflarestorage.com" in kwargs["endpoint"]:
kwargs["disable_stat_with_override"] = True
kwargs["disable_stat_with_override"] = "true"
kwargs["region"] = kwargs["region"] or "auto"
logger.debug("Using R2 for S3")

for k, v in kwargs.items():
if v is None:
logger.warning(f"S3 config {k} is not set")

return lambda: OpenDALStorage(scheme=OpenDALScheme.S3, **kwargs)
case StorageType.AZURE_BLOB:
from extensions.storage.azure_blob_storage import AzureBlobStorage
Expand Down

0 comments on commit 15d28ae

Please sign in to comment.