Update internal/identity/manager/manager.go

Co-authored-by: Kenneth Jenkins <51246568+kenjenkins@users.noreply.github.com>
This commit is contained in:
Caleb Doxsey 2024-05-02 09:34:20 -06:00 committed by GitHub
parent 3148e4947f
commit 81a26ff6c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()).