Skip to content

Commit

Permalink
chore: fix typo in storage backend (#2917) (#2926)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa authored Oct 21, 2024
1 parent 4cfdadb commit b703459
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
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

0 comments on commit b703459

Please sign in to comment.