From 81a26ff6c983a2b11ae9721ff1ad941f3422f58c Mon Sep 17 00:00:00 2001 From: Caleb Doxsey Date: Thu, 2 May 2024 09:34:20 -0600 Subject: [PATCH] Update internal/identity/manager/manager.go Co-authored-by: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com> --- internal/identity/manager/manager.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/identity/manager/manager.go b/internal/identity/manager/manager.go index c68678fe8..84ed3bf20 100644 --- a/internal/identity/manager/manager.go +++ b/internal/identity/manager/manager.go @@ -400,7 +400,9 @@ func (mgr *Manager) updateSession(ctx context.Context, s *session.Session) { mgr.mu.Unlock() } -// updateUser updates the user in the databroker, the local data store, and resets the scheduler +// updateUser updates the user in the databroker, the local data store, and resets the scheduler. +// (Whenever we refresh a session, we also refresh the user info. By resetting the user info +// scheduler here we can avoid refreshing user info more often than necessary.) func (mgr *Manager) updateUser(ctx context.Context, u *user.User) { log.Ctx(ctx).Debug(). Str("user_id", u.GetId()).