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