@@ -76,7 +76,7 @@ async def open_by_alias(
7676 The alias mapping is stored in the default key-value store for persistence across Actor runs.
7777
7878 Args:
79- alias: The alias name for the storage (e.g., '__default__', ' my-storage').
79+ alias: The alias name for the storage (e.g., 'my-storage').
8080 storage_type: The type of storage to open.
8181 collection_client: The Apify API collection client for the storage type.
8282 get_resource_client_by_id: A callable that takes a storage ID and returns the resource client.
@@ -131,6 +131,8 @@ class AliasResolver:
131131 _alias_init_lock : Lock | None = None
132132 """Lock for creating alias storages. Only one alias storage can be created at the time. Global for all instances."""
133133
134+ default_storage_key : ClassVar [str ] = '__default__'
135+
134136 def __init__ (
135137 self ,
136138 storage_type : Literal ['Dataset' , 'KeyValueStore' , 'RequestQueue' ],
@@ -195,7 +197,7 @@ async def resolve_id(self) -> str | None:
195197 """
196198 # First try to find the alias in the configuration mapping to avoid any API calls.
197199 # This mapping is maintained by the Apify platform and does not have to be maintained in the default KVS.
198- if self ._configuration .actor_storages and self . _alias != 'default' :
200+ if self ._configuration .actor_storages :
199201 storage_maps = {
200202 'Dataset' : self ._configuration .actor_storages ['datasets' ],
201203 'KeyValueStore' : self ._configuration .actor_storages ['key_value_stores' ],
0 commit comments