tracker: Fix some comments
This commit is contained in:
parent
3e3f2e4128
commit
2789a4ff39
|
@ -58,15 +58,13 @@ type Announce struct {
|
|||
ServerName string
|
||||
UserAgent string
|
||||
UdpNetwork string
|
||||
// If the port is zero, it's assumed to be the same as the Request.Port
|
||||
// If the port is zero, it's assumed to be the same as the Request.Port.
|
||||
ClientIp4 krpc.NodeAddr
|
||||
// If the port is zero, it's assumed to be the same as the Request.Port
|
||||
// If the port is zero, it's assumed to be the same as the Request.Port.
|
||||
ClientIp6 krpc.NodeAddr
|
||||
Context context.Context
|
||||
}
|
||||
|
||||
// In an FP language with currying, what order what you put these params?
|
||||
|
||||
func (me Announce) Do() (res AnnounceResponse, err error) {
|
||||
_url, err := url.Parse(me.TrackerUrl)
|
||||
if err != nil {
|
||||
|
|
|
@ -152,7 +152,7 @@ func TestAnnounceRandomInfoHashThirdParty(t *testing.T) {
|
|||
t.Parallel()
|
||||
if testing.Short() {
|
||||
// This test involves contacting third party servers that may have
|
||||
// unpreditable results.
|
||||
// unpredictable results.
|
||||
t.SkipNow()
|
||||
}
|
||||
req := AnnounceRequest{
|
||||
|
|
Loading…
Reference in New Issue