Remove uploadChunksPosted expvar

Use messageTypesPosted.Piece
This commit is contained in:
Matt Joiner 2018-02-07 13:57:50 +11:00
parent 05da46ddbb
commit 15ed1bbd69
2 changed files with 0 additions and 3 deletions

View File

@ -1431,7 +1431,6 @@ func (c *connection) sendChunk(r request, msg func(pp.Message) bool) (more bool,
Begin: r.Begin,
Piece: b,
})
uploadChunksPosted.Add(1)
c.lastChunkSent = time.Now()
return
}

View File

@ -31,8 +31,6 @@ var (
peersAddedBySource = expvar.NewMap("peersAddedBySource")
uploadChunksPosted = expvar.NewInt("uploadChunksPosted")
pieceHashedCorrect = expvar.NewInt("pieceHashedCorrect")
pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect")