Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo in storage backend #2917

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ai/backend/storage/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ def __init__(
mount_path: Path,
*,
etcd: AsyncEtcd,
event_dispathcer: EventDispatcher,
event_dispatcher: EventDispatcher,
event_producer: EventProducer,
options: Optional[Mapping[str, Any]] = None,
) -> None:
self.local_config = local_config
self.mount_path = mount_path
self.config = options or {}
self.etcd = etcd
self.event_dispathcer = event_dispathcer
self.event_dispatcher = event_dispatcher
self.event_producer = event_producer

async def init(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/ai/backend/storage/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async def get_volume(self, name: str) -> AsyncIterator[AbstractVolume]:
mount_path=Path(volume_config["path"]),
options=volume_config["options"] or {},
etcd=self.etcd,
event_dispathcer=self.event_dispatcher,
event_dispatcher=self.event_dispatcher,
event_producer=self.event_producer,
)

Expand Down
4 changes: 2 additions & 2 deletions src/ai/backend/storage/gpfs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(
mount_path: Path,
*,
etcd: AsyncEtcd,
event_dispathcer: EventDispatcher,
event_dispatcher: EventDispatcher,
event_producer: EventProducer,
options: Optional[Mapping[str, Any]] = None,
) -> None:
Expand All @@ -126,7 +126,7 @@ def __init__(
mount_path,
etcd=etcd,
options=options,
event_dispathcer=event_dispathcer,
event_dispatcher=event_dispatcher,
event_producer=event_producer,
)
verify_ssl = self.config.get("gpfs_verify_ssl", False)
Expand Down
4 changes: 2 additions & 2 deletions src/ai/backend/storage/vast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(
mount_path: Path,
*,
etcd: AsyncEtcd,
event_dispathcer: EventDispatcher,
event_dispatcher: EventDispatcher,
event_producer: EventProducer,
options: Optional[Mapping[str, Any]] = None,
) -> None:
Expand All @@ -188,7 +188,7 @@ def __init__(
mount_path,
etcd=etcd,
options=options,
event_dispathcer=event_dispathcer,
event_dispatcher=event_dispatcher,
event_producer=event_producer,
)
self.config = cast(Mapping[str, Any], config_iv.check(self.config))
Expand Down
4 changes: 2 additions & 2 deletions src/ai/backend/storage/weka/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(
mount_path: Path,
*,
etcd: AsyncEtcd,
event_dispathcer: EventDispatcher,
event_dispatcher: EventDispatcher,
event_producer: EventProducer,
options: Optional[Mapping[str, Any]] = None,
) -> None:
Expand All @@ -114,7 +114,7 @@ def __init__(
mount_path,
etcd=etcd,
options=options,
event_dispathcer=event_dispathcer,
event_dispatcher=event_dispatcher,
event_producer=event_producer,
)
ssl_verify = self.config.get("weka_verify_ssl", False)
Expand Down
2 changes: 1 addition & 1 deletion tests/storage-proxy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def volume(
volume_path,
etcd=mock_etcd,
options=backend_options,
event_dispathcer=mock_event_dispatcher,
event_dispatcher=mock_event_dispatcher,
event_producer=mock_event_producer,
)
await volume.init()
Expand Down
Loading