From: Matt Joiner Date: Wed, 22 Jan 2020 04:56:16 +0000 (+1100) Subject: Reflow some comments X-Git-Tag: v1.12.0~6 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1d5b8f7451ca9ba6c1bb9582b6652bee420b8c4f;p=btrtrc.git Reflow some comments --- diff --git a/conn_stats.go b/conn_stats.go index 3a0216f5..bb2bc26b 100644 --- a/conn_stats.go +++ b/conn_stats.go @@ -34,9 +34,8 @@ type ConnStats struct { // Number of pieces data was written to, that subsequently passed verification. PiecesDirtiedGood Count - // Number of pieces data was written to, that subsequently failed - // verification. Note that a connection may not have been the sole dirtier - // of a piece. + // Number of pieces data was written to, that subsequently failed verification. Note that a + // connection may not have been the sole dirtier of a piece. PiecesDirtiedBad Count } diff --git a/torrent.go b/torrent.go index 5bb013bc..32db5146 100644 --- a/torrent.go +++ b/torrent.go @@ -1769,8 +1769,8 @@ func (t *Torrent) AddClientPeer(cl *Client) { }()) } -// All stats that include this Torrent. Useful when we want to increment -// ConnStats but not for every connection. +// All stats that include this Torrent. Useful when we want to increment ConnStats but not for every +// connection. func (t *Torrent) allStats(f func(*ConnStats)) { f(&t.stats) f(&t.cl.stats)