From 9145b193a9d53c4d056afdc5fa04404e0f154fb0 Mon Sep 17 00:00:00 2001 From: vyzo Date: Sat, 26 Feb 2022 20:05:26 +0200 Subject: [PATCH] comment out more dead code, make staticcheck happy --- multiplex.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/multiplex.go b/multiplex.go index 8ae2581..e982384 100644 --- a/multiplex.go +++ b/multiplex.go @@ -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 @@ -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),