refactor: Update connectivity.Checker struct to use pointer on receiver

This commit is contained in:
TwiN 2024-04-18 21:05:49 -04:00
parent b88d0b1c34
commit 76a84031c2

View File

@ -41,7 +41,7 @@ type Checker struct {
lastCheck time.Time lastCheck time.Time
} }
func (c Checker) Check() bool { func (c *Checker) Check() bool {
return client.CanCreateTCPConnection(c.Target, &client.Config{Timeout: 5 * time.Second}) return client.CanCreateTCPConnection(c.Target, &client.Config{Timeout: 5 * time.Second})
} }