]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove unnecessary use of go keyword
authorMatt Joiner <anacrolix@gmail.com>
Tue, 12 Jun 2018 10:16:17 +0000 (20:16 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 12 Jun 2018 10:16:17 +0000 (20:16 +1000)
client.go

index 3815c10d91f9a6bd6a201e017a4273426e8f5f73..2a65b90689068eeb84f2a128ec97eb0072f0df73 100644 (file)
--- a/client.go
+++ b/client.go
@@ -617,7 +617,7 @@ func (cl *Client) establishOutgoingConn(t *Torrent, addr string) (c *connection,
                return
        }
        if c != nil {
-               go torrent.Add("initiated conn with preferred header obfuscation", 1)
+               torrent.Add("initiated conn with preferred header obfuscation", 1)
                return
        }
        if cl.config.ForceEncryption {
@@ -631,7 +631,7 @@ func (cl *Client) establishOutgoingConn(t *Torrent, addr string) (c *connection,
        // Try again with encryption if we didn't earlier, or without if we did.
        c, err = cl.establishOutgoingConnEx(t, addr, ctx, !obfuscatedHeaderFirst)
        if c != nil {
-               go torrent.Add("initiated conn with fallback header obfuscation", 1)
+               torrent.Add("initiated conn with fallback header obfuscation", 1)
        }
        return
 }