Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 27, 2018
1 parent 52ed292 commit 2500c38
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions entropy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"
)

// Entropy defines a entropy source
type Entropy interface {
Init()
Fill(nonce []byte)
Expand Down
1 change: 0 additions & 1 deletion kcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func (p *DelayPacket) ts() int32 { return p._ts }
func (p *DelayPacket) setts(ts int32) { p._ts = ts }

type DelayTunnel struct{ *list.List }
type Random *rand.Rand
type LatencySimulator struct {
current int32
lostrate, rttmin, rttmax, nmax int
Expand Down
6 changes: 0 additions & 6 deletions sess.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,12 +677,6 @@ type (
rd atomic.Value // read deadline for Accept()
wd atomic.Value
}

// a incoming packet definition
inPacket struct {
from net.Addr
data []byte
}
)

// monitor incoming data for all connections of server
Expand Down
2 changes: 0 additions & 2 deletions sess_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ const portEcho = "127.0.0.1:9999"
const portSink = "127.0.0.1:19999"
const portTinyBufferEcho = "127.0.0.1:29999"
const portListerner = "127.0.0.1:9998"
const salt = "kcptest"

var key = []byte("testkey")
var fec = 4
var pass = pbkdf2.Key(key, []byte(portSink), 4096, 32, sha1.New)

func init() {
Expand Down

0 comments on commit 2500c38

Please sign in to comment.