mirror of
https://github.com/go-i2p/goSam.git
synced 2025-06-10 01:38:27 -04:00
fix pass lock by value warning
This commit is contained in:
2
dial.go
2
dial.go
@ -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
|
||||
|
Reference in New Issue
Block a user