fix pass lock by value warning

This commit is contained in:
postables
2020-08-30 18:34:41 -07:00
parent 7cf9e8b61e
commit 7729762ce9

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