2
0
mirror of synced 2025-02-24 14:48:27 +00:00

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

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)