Skip to content

Commit 437b95b

Browse files
author
Andrei Neagu
committed
refactor
1 parent 5fce9e7 commit 437b95b

File tree

1 file changed

+1
-2
lines changed
  • services/web/server/src/simcore_service_webserver/resource_manager

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ async def remove_socket_id_after_disconnection(self) -> None:
116116
extra=get_log_record_extra(user_id=self.user_id),
117117
)
118118

119-
# why not remove alive key as well together with all this
120119
await self._registry.remove_resource(self._resource_key(), _SOCKET_ID_FIELDNAME)
121120
# when the tab is closed the alive key is also removed immediately,
122121
# there is no reason to keep it active
@@ -194,7 +193,7 @@ async def remove(self, key: str) -> None:
194193
await self._registry.remove_resource(self._resource_key(), key)
195194

196195
@staticmethod
197-
async def find_users_of_resource(
196+
async def find_users_of_resource( # used for notifications of closed/used projects to block them in the UI?
198197
app: web.Application, key: str, value: str
199198
) -> list[UserSessionID]:
200199
registry = get_registry(app)

0 commit comments

Comments
 (0)