tracker/tracker.go | 6 ++---- tracker/udp_test.go | 2 +- diff --git a/tracker/tracker.go b/tracker/tracker.go index e7260503df41e9458e14e10be9826b6a03dd4ec4..446e2cb295ba9b8b283a477919c6ade4c5674072 100644 --- a/tracker/tracker.go +++ b/tracker/tracker.go @@ -58,14 +58,12 @@ HTTPProxy func(*http.Request) (*url.URL, error) 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) diff --git a/tracker/udp_test.go b/tracker/udp_test.go index ea500f18e6dc88c8e59095062348a068f3de29b2..5b12bc6beac079f2caee692c159122590ce0f7cd 100644 --- a/tracker/udp_test.go +++ b/tracker/udp_test.go @@ -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{