Fix build error with recent go version

This commit is contained in:
Matt Joiner 2018-06-12 21:51:34 +10:00
parent 22a939fb02
commit 224522545b
1 changed files with 1 additions and 1 deletions

View File

@ -1522,7 +1522,7 @@ func (t *Torrent) addConnection(c *connection) error {
if len(t.conns) >= t.maxEstablishedConns {
c := t.worstBadConn()
if t.cl.config.Debug && missinggo.CryHeard() {
log.Printf("%s: dropping connection to make room for new one:\n %s", t, c)
log.Printf("%s: dropping connection to make room for new one:\n %v", t, c)
}
c.Close()
t.deleteConnection(c)