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:
parent
b88d0b1c34
commit
76a84031c2
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue