Unused *Client argument to Torrent.writeStatus
This commit is contained in:
parent
192bb829fb
commit
f5d58b3dc6
@ -182,7 +182,7 @@ func (cl *Client) WriteStatus(_w io.Writer) {
|
||||
w.WriteString("<missing metainfo>")
|
||||
}
|
||||
fmt.Fprint(w, "\n")
|
||||
t.writeStatus(w, cl)
|
||||
t.writeStatus(w)
|
||||
fmt.Fprintln(w)
|
||||
}
|
||||
}
|
||||
|
@ -398,7 +398,7 @@ func pieceStateRunStatusChars(psr PieceStateRun) (ret string) {
|
||||
return
|
||||
}
|
||||
|
||||
func (t *Torrent) writeStatus(w io.Writer, cl *Client) {
|
||||
func (t *Torrent) writeStatus(w io.Writer) {
|
||||
fmt.Fprintf(w, "Infohash: %x\n", t.infoHash)
|
||||
fmt.Fprintf(w, "Metadata length: %d\n", t.metadataSize())
|
||||
if !t.haveInfo() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user