From: Matt Joiner Date: Tue, 12 Jun 2018 10:16:17 +0000 (+1000) Subject: Remove unnecessary use of go keyword X-Git-Tag: v1.0.0~127^2~41 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b024e1cff607f5a5ecbd8197e75ed3e5edc83957;p=btrtrc.git Remove unnecessary use of go keyword --- diff --git a/client.go b/client.go index 3815c10d..2a65b906 100644 --- 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 }