Skip to content

Commit

Permalink
💡 Add a comment about caching user ids
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Sep 29, 2024
1 parent 0bcc2f7 commit f43f9d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lamindb_setup/core/_settings_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ def id(self):
"""Integer id valid in current intance."""
from lnschema_core.users import current_user_id

# there is no cache needed here because current_user_id()
# has its own cache
return current_user_id()

0 comments on commit f43f9d2

Please sign in to comment.