From b024e1cff607f5a5ecbd8197e75ed3e5edc83957 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 12 Jun 2018 20:16:17 +1000 Subject: [PATCH] Remove unnecessary use of go keyword --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.50.0