]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Formatting and comments
authorMatt Joiner <anacrolix@gmail.com>
Sat, 6 Jan 2018 05:37:40 +0000 (16:37 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 6 Jan 2018 05:37:40 +0000 (16:37 +1100)
client.go
fs/torrentfs.go

index 7fb7d50161a679697efa3b6744a8d42510b93a42..290ea711aaa7294dccc5a5ff4b6dc4d250272ff3 100644 (file)
--- a/client.go
+++ b/client.go
@@ -521,7 +521,7 @@ func (cl *Client) initiateConn(peer Peer, t *Torrent) {
 
 func (cl *Client) dialTCP(ctx context.Context, addr string) (c net.Conn, err error) {
        d := net.Dialer{
-       // LocalAddr: cl.tcpListener.Addr(),
+               // LocalAddr: cl.tcpListener.Addr(),
        }
        c, err = d.DialContext(ctx, "tcp", addr)
        countDialResult(err)
index 65cb42cef2efed3b1a6509c32804d29917b64daf..5fdc95e8cc4abc0d20489c0275e8c6068245de20 100644 (file)
@@ -40,6 +40,8 @@ var (
        _ fusefs.HandleReadDirAller = dirNode{}
 )
 
+// Is a directory node that lists all torrents and handles destruction of the
+// filesystem.
 type rootNode struct {
        fs *TorrentFS
 }