propose mutex rework

This commit is contained in:
wish
2023-11-11 19:39:42 +11:00
parent 6ff20858ed
commit e24c432d69
4 changed files with 28 additions and 35 deletions

View File

@@ -25,7 +25,7 @@ type packet struct {
// Session holds state for the channel server connection.
type Session struct {
sync.Mutex
sync.RWMutex
logger *zap.Logger
server *Server
rawConn net.Conn