connection.go | 10 ---------- global.go | 1 - diff --git a/connection.go b/connection.go index 45c2c20a387259d3349490d36f542cbb5647377f..05c5f5ea44a0406e95d852b3d8a89e4289c669a9 100644 --- a/connection.go +++ b/connection.go @@ -4,7 +4,6 @@ import ( "bufio" "bytes" "errors" - "expvar" "fmt" "io" "log" @@ -23,8 +22,6 @@ "github.com/anacrolix/torrent/bencode" pp "github.com/anacrolix/torrent/peer_protocol" ) - -var optimizedCancels = expvar.NewInt("optimizedCancels") type peerSource string @@ -337,13 +334,6 @@ } }(), }) } - -var ( - // Track connection writer buffer writes and flushes, to determine its - // efficiency. - connectionWriterFlush = expvar.NewInt("connectionWriterFlush") - connectionWriterWrite = expvar.NewInt("connectionWriterWrite") -) func (cn *connection) fillWriteBuffer(msg func(pp.Message) bool) { numFillBuffers.Add(1) diff --git a/global.go b/global.go index a89659aeb2b720a9c9b36d9f5f3739dfeaaf696d..9e357c5678ab8e8fb52101880eb8c00af8d42946 100644 --- a/global.go +++ b/global.go @@ -63,7 +63,6 @@ peersAddedBySource = expvar.NewMap("peersAddedBySource") uploadChunksPosted = expvar.NewInt("uploadChunksPosted") unexpectedCancels = expvar.NewInt("unexpectedCancels") - postedCancels = expvar.NewInt("postedCancels") pieceHashedCorrect = expvar.NewInt("pieceHashedCorrect") pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect")