File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
src/apify/storage_clients/_apify Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -92,17 +92,6 @@ async def _get_alias_map(cls) -> dict[str, str]:
9292
9393 return cls ._alias_map
9494
95- @property
96- def _storage_key (self ) -> str :
97- """Get a unique storage key used for storing the alias in the mapping."""
98- return self ._ALIAS_STORAGE_KEY_SEPARATOR .join (
99- [
100- self ._storage_type .__name__ ,
101- self ._alias ,
102- self ._additional_cache_key ,
103- ]
104- )
105-
10695 async def resolve_id (self ) -> str | None :
10796 """Get id of the aliased storage.
10897
@@ -144,6 +133,17 @@ async def store_mapping(self, storage_id: str) -> None:
144133 except Exception as exc :
145134 logger .warning (f'Error storing alias mapping for { self ._alias } : { exc } ' )
146135
136+ @property
137+ def _storage_key (self ) -> str :
138+ """Get a unique storage key used for storing the alias in the mapping."""
139+ return self ._ALIAS_STORAGE_KEY_SEPARATOR .join (
140+ [
141+ self ._storage_type .__name__ ,
142+ self ._alias ,
143+ self ._additional_cache_key ,
144+ ]
145+ )
146+
147147
148148async def _get_default_kvs_client () -> KeyValueStoreClientAsync :
149149 """Get a client for the default key-value store."""
You can’t perform that action at this time.
0 commit comments