feat(assist-api): no comments
This commit is contained in:
parent
8280c8754c
commit
28cb2ba74c
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue