Skip to content

Add TrackerDomain, DownloadTotal and UploadTotal - #1

Closed
twang817 wants to merge 2 commits into
mdlayher:masterfrom
twang817:master
Closed

Add TrackerDomain, DownloadTotal and UploadTotal#1
twang817 wants to merge 2 commits into
mdlayher:masterfrom
twang817:master

Conversation

@twang817

Copy link
Copy Markdown

No description provided.

@mdlayher mdlayher left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable overall, but please add some tests in the same style as the other ones.

Comment thread downloads.go
@@ -1,5 +1,9 @@
package rtorrent

import "net"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These imports should be in a single block.

import (
    "net"
)

Tools like goimports do it for you.

Comment thread downloads.go
host = h
}
}
return host, err

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just return host, nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants