From 2789a4ff393e11072ad9471c2feb21c7d259d525 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 28 Nov 2018 12:02:25 +1100 Subject: [PATCH] tracker: Fix some comments --- tracker/tracker.go | 6 ++---- tracker/udp_test.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tracker/tracker.go b/tracker/tracker.go index e7260503..446e2cb2 100644 --- a/tracker/tracker.go +++ b/tracker/tracker.go @@ -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 { diff --git a/tracker/udp_test.go b/tracker/udp_test.go index ea500f18..5b12bc6b 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{