세션 invalidate될 때 전달하는 인자를 구조체로 변경
This commit is contained in:
@ -334,8 +334,8 @@ func (ws *WebsocketHandler) LeaveRoom(room string, accid primitive.ObjectID) {
|
||||
}
|
||||
}
|
||||
|
||||
func (ws *WebsocketHandler) onSessionInvalidated(accid primitive.ObjectID) {
|
||||
ws.forceCloseChan <- accid
|
||||
func (ws *WebsocketHandler) onSessionInvalidated(invsess session.InvalidatedSession) {
|
||||
ws.forceCloseChan <- invsess.Account
|
||||
}
|
||||
|
||||
func (ws *WebsocketHandler) mainLoop(ctx context.Context) {
|
||||
|
||||
@ -176,9 +176,9 @@ func (ws *websocketPeerHandler[T]) RegisterHandlers(serveMux gocommon.ServerMuxI
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ws *websocketPeerHandler[T]) onSessionInvalidated(accid primitive.ObjectID) {
|
||||
func (ws *websocketPeerHandler[T]) onSessionInvalidated(invsess session.InvalidatedSession) {
|
||||
ws.peerDtorChannel <- peerDtorChannelValue{
|
||||
accid: accid,
|
||||
accid: invsess.Account,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user