From 56109b387dae397f5831e49e36915bec392f9a16 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 6 Jan 2018 16:37:40 +1100 Subject: [PATCH] Formatting and comments --- client.go | 2 +- fs/torrentfs.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 7fb7d501..290ea711 100644 --- 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) diff --git a/fs/torrentfs.go b/fs/torrentfs.go index 65cb42ce..5fdc95e8 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -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 }