]> Sergey Matveev's repositories - btrtrc.git/commitdiff
tracker: Fix some comments
authorMatt Joiner <anacrolix@gmail.com>
Wed, 28 Nov 2018 01:02:25 +0000 (12:02 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 28 Nov 2018 01:02:25 +0000 (12:02 +1100)
tracker/tracker.go
tracker/udp_test.go

index e7260503df41e9458e14e10be9826b6a03dd4ec4..446e2cb295ba9b8b283a477919c6ade4c5674072 100644 (file)
@@ -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 {
index ea500f18e6dc88c8e59095062348a068f3de29b2..5b12bc6beac079f2caee692c159122590ce0f7cd 100644 (file)
@@ -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{