Skip to content

Commit

Permalink
comment out more dead code, make staticcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Feb 26, 2022
1 parent d0ffa11 commit 9145b19
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions multiplex.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ type Multiplex struct {
shutdownErr error
shutdownLock sync.Mutex

writeCh chan []byte
writeTimer *time.Timer
writeTimerFired bool
writeCh chan []byte
//writeTimer *time.Timer
//writeTimerFired bool

nstreams chan *Stream

Expand All @@ -104,14 +104,14 @@ func NewMultiplex(con net.Conn, initiator bool, memoryManager MemoryManager) *Mu
memoryManager = &nullMemoryManager{}
}
mp := &Multiplex{
con: con,
initiator: initiator,
buf: bufio.NewReader(con),
channels: make(map[streamID]*Stream),
closed: make(chan struct{}),
shutdown: make(chan struct{}),
writeCh: make(chan []byte, 16),
writeTimer: time.NewTimer(0),
con: con,
initiator: initiator,
buf: bufio.NewReader(con),
channels: make(map[streamID]*Stream),
closed: make(chan struct{}),
shutdown: make(chan struct{}),
writeCh: make(chan []byte, 16),
//writeTimer: time.NewTimer(0),
nstreams: make(chan *Stream, 16),
memoryManager: memoryManager,
bufIn: make(chan struct{}, MaxBuffers/2),
Expand Down

0 comments on commit 9145b19

Please sign in to comment.