Merge pull request #3 from bonedaddy/fix/mutex

Fix Pass Lock By Value Vet Warning
This commit is contained in:
idk
2020-09-02 12:04:38 +00:00
committed by GitHub

View File

@ -30,7 +30,7 @@ func (c *Client) DialContext(ctx context.Context, network, addr string) (net.Con
}
}
func (c Client) dialCheck(addr string) (int32, bool) {
func (c *Client) dialCheck(addr string) (int32, bool) {
if c.lastaddr == "invalid" {
fmt.Println("Preparing to dial new address.")
return c.NewID(), true