feat(assist-api): no comments

This commit is contained in:
Alexander 2025-04-14 17:04:03 +02:00
parent 8280c8754c
commit 28cb2ba74c

View file

@ -329,6 +329,9 @@ func (sm *sessionManagerImpl) updateSessions() {
sm.mutex.RLock()
toAdd := make([]string, 0, len(updatedSessIDs))
if updatedSessIDs == nil {
updatedSessIDs = make(map[string]struct{})
}
for sessID, _ := range sessIDs {
if _, exists := sm.cache[sessID]; !exists {
updatedSessIDs[sessID] = struct{}{} // Add to updated sessions if not in cache