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

This commit is contained in:
TwiN committed 2024-04-18 21:08:43 -04:00
1 parent b88d0b1c34
commit 76a84031c2
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@ type Checker struct {
lastCheck time.Time
}
func (c Checker) Check() bool {
func (c *Checker) Check() bool {
return client.CanCreateTCPConnection(c.Target, &client.Config{Timeout: 5 * time.Second})
}