Formatting and comments

This commit is contained in:
Matt Joiner 2018-01-06 16:37:40 +11:00
parent 9b718566ba
commit 56109b387d
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View 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
}