]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Tidy code
authorMatt Joiner <anacrolix@gmail.com>
Thu, 4 Feb 2016 04:04:46 +0000 (15:04 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 4 Feb 2016 04:04:46 +0000 (15:04 +1100)
client.go
data/pieceStore/dataBackend/http/backend.go

index 8a611bae01216e74c843884e501afdcc747c1fa5..3cd3d6688a868a2814dcfa02397d3ca83f313bb8 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1623,7 +1623,6 @@ func (me *Client) deleteConnection(t *torrent, c *connection) bool {
 func (me *Client) dropConnection(t *torrent, c *connection) {
        me.event.Broadcast()
        c.Close()
-
        if me.deleteConnection(t, c) {
                me.openNewConns(t)
        }
index 696c214a72414e6b0f9303348707f7550bff90af..ac7a595d033456438cab1c766e973d4278bab31d 100644 (file)
@@ -33,7 +33,6 @@ func New(u url.URL) *backend {
                                        },
                                },
                        },
-                       // Client: http.DefaultClient,
                },
        }
 }