You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type sessionSet struct { mu sync.RWMutex members map[*Session]struct{} }
请教一下,这里为什么用的是map[*Session]struct{},而不是map[key]*Session,比如key是user_id这种,发消息给精确的某个人的时候这种不是应该性能更好吗
The text was updated successfully, but these errors were encountered:
type sessionSet struct { mu sync.RWMutex members map[*Session]struct{} }
请教一下,这里为什么用的是map[*Session]struct{},而不是map[key]*Session,比如key是user_id这种,发消息给精确的某个人的时候这种不是应该性能更好吗
The text was updated successfully, but these errors were encountered: