Skip to content

Commit 63200b1

Browse files
committed
minor
1 parent fb74cc4 commit 63200b1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

services/web/server/src/simcore_service_webserver/resource_manager/registry.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ async def find_resources(self, key: UserSession, resource_name: str) -> list[str
106106
return resources
107107

108108
async def find_keys(self, resource: tuple[str, str]) -> list[UserSession]:
109-
if not resource:
110-
return []
111-
112109
field, value = resource
113110
return [
114111
self._decode_hash_key(hash_key)

services/web/server/tests/unit/with_dbs/04/garbage_collector/test_resource_manager_user_sessions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ async def test_redis_registry(
149149
}
150150
assert not await redis_registry.get_resources(invalid_user_session)
151151
# find them
152-
assert await redis_registry.find_keys([]) == []
153152
for res in resources:
154153
assert await redis_registry.find_resources(user_session, res[0]) == [res[1]]
155154
assert not await redis_registry.find_resources(invalid_user_session, res[0])

0 commit comments

Comments
 (0)