lint fixes

This commit is contained in:
Łukasz Magiera 2019-08-20 00:38:32 +02:00
parent 1bacee146d
commit 6ec6c273cb
3 changed files with 8 additions and 7 deletions

1
go.mod
View File

@ -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

View File

@ -19,7 +19,7 @@ type runningNode struct {
cmd *exec.Cmd
meta nodeInfo
mux *outmux
mux *outmux
stop func()
}

View File

@ -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
}
}