Armon Dadgar 11 лет назад
Родитель
Сommit
da81b24204
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      session.go

+ 0 - 4
session.go

@@ -21,9 +21,6 @@ type Session struct {
 	// accepting futher connections. Must be first for alignment.
 	// accepting futher connections. Must be first for alignment.
 	localGoAway int32
 	localGoAway int32
 
 
-	// client is true if we are a client size connection
-	client bool
-
 	// config holds our configuration
 	// config holds our configuration
 	config *Config
 	config *Config
 
 
@@ -68,7 +65,6 @@ type sendReady struct {
 // newSession is used to construct a new session
 // newSession is used to construct a new session
 func newSession(config *Config, conn io.ReadWriteCloser, client bool) *Session {
 func newSession(config *Config, conn io.ReadWriteCloser, client bool) *Session {
 	s := &Session{
 	s := &Session{
-		client:     client,
 		config:     config,
 		config:     config,
 		conn:       conn,
 		conn:       conn,
 		pings:      make(map[uint32]chan struct{}),
 		pings:      make(map[uint32]chan struct{}),