]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix build error with recent go version
authorMatt Joiner <anacrolix@gmail.com>
Tue, 12 Jun 2018 11:51:34 +0000 (21:51 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 12 Jun 2018 11:51:34 +0000 (21:51 +1000)
torrent.go

index fc1fb5dfdf2aa6f3a592c8c90064e0f1f5993d70..91f72da80d3db8ed830298e016bedd89616625c0 100644 (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)