lint fixes
This commit is contained in:
parent
1bacee146d
commit
6ec6c273cb
1
go.mod
1
go.mod
@ -59,6 +59,7 @@ require (
|
||||
github.com/multiformats/go-multiaddr-dns v0.0.3
|
||||
github.com/multiformats/go-multiaddr-net v0.0.1
|
||||
github.com/multiformats/go-multihash v0.0.6
|
||||
github.com/opentracing/opentracing-go v1.1.0
|
||||
github.com/pkg/errors v0.8.1
|
||||
github.com/polydawn/refmt v0.0.0-20190809202753-05966cbd336a
|
||||
github.com/smartystreets/assertions v1.0.1 // indirect
|
||||
|
@ -19,7 +19,7 @@ type runningNode struct {
|
||||
cmd *exec.Cmd
|
||||
meta nodeInfo
|
||||
|
||||
mux *outmux
|
||||
mux *outmux
|
||||
stop func()
|
||||
}
|
||||
|
||||
|
@ -19,19 +19,19 @@ type outmux struct {
|
||||
errpr *io.PipeReader
|
||||
outpr *io.PipeReader
|
||||
|
||||
n uint64
|
||||
n uint64
|
||||
outs map[uint64]*websocket.Conn
|
||||
|
||||
new chan *websocket.Conn
|
||||
new chan *websocket.Conn
|
||||
stop chan struct{}
|
||||
}
|
||||
|
||||
func newWsMux() *outmux {
|
||||
out := &outmux{
|
||||
n: 0,
|
||||
n: 0,
|
||||
outs: map[uint64]*websocket.Conn{},
|
||||
new: make(chan *websocket.Conn),
|
||||
stop: make(chan struct{}),
|
||||
new: make(chan *websocket.Conn),
|
||||
stop: make(chan struct{}),
|
||||
}
|
||||
|
||||
out.outpr, out.outpw = io.Pipe()
|
||||
@ -121,4 +121,4 @@ func (m *outmux) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
m.new <- c
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user