Fix typo and remove redundant code in storage module. (#9862)

This commit is contained in:
bojackli 2025-07-26 00:24:18 +08:00 committed by GitHub
parent 26a9abbe82
commit 3ce19993bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ In-memory storage keeps files in memory, which is useful for testing or temporar
S3 storage uses Amazon S3 or compatible services for file storage.
**Environment Variables:**
- The bucket name is specified by `file_store_path` in the configuration with a fallback to the `AWS_S3_BUCKET` enviroment variable.
- The bucket name is specified by `file_store_path` in the configuration with a fallback to the `AWS_S3_BUCKET` environment variable.
- `AWS_ACCESS_KEY_ID`: Your AWS access key
- `AWS_SECRET_ACCESS_KEY`: Your AWS secret key
- `AWS_S3_ENDPOINT`: Optional custom endpoint for S3-compatible services (Allows overriding the default)
@ -47,7 +47,7 @@ S3 storage uses Amazon S3 or compatible services for file storage.
Google Cloud Storage uses Google Cloud Storage buckets for file storage.
**Environment Variables:**
- The bucket name is specified by `file_store_path` in the configuration with a fallback to the `GOOGLE_CLOUD_BUCKET_NAME` enviroment variable.
- The bucket name is specified by `file_store_path` in the configuration with a fallback to the `GOOGLE_CLOUD_BUCKET_NAME` environment variable.
- `GOOGLE_APPLICATION_CREDENTIALS`: Path to Google Cloud credentials JSON file
## Webhook Protocol

View File

@ -39,7 +39,7 @@ class FileSecretsStore(SecretsStore):
async def get_instance(
cls, config: OpenHandsConfig, user_id: str | None
) -> FileSecretsStore:
file_store = file_store = get_file_store(
file_store = get_file_store(
config.file_store,
config.file_store_path,
config.file_store_web_hook_url,

View File

@ -33,7 +33,7 @@ class FileSettingsStore(SettingsStore):
async def get_instance(
cls, config: OpenHandsConfig, user_id: str | None
) -> FileSettingsStore:
file_store = file_store = get_file_store(
file_store = get_file_store(
config.file_store,
config.file_store_path,
config.file_store_web_hook_url,