1
0
Fork 0
mirror of https://github.com/TwiN/gatus.git synced 2024-12-14 11:58:04 +00:00

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})
} }