From: Matt Joiner Date: Sat, 6 Jan 2018 05:37:40 +0000 (+1100) Subject: Formatting and comments X-Git-Tag: v1.0.0~302 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=56109b387dae397f5831e49e36915bec392f9a16;p=btrtrc.git Formatting and comments --- 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 }