From 76a84031c2af1d5bc88de943d12509f19b135e6f Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 18 Apr 2024 21:05:49 -0400 Subject: [PATCH] refactor: Update connectivity.Checker struct to use pointer on receiver --- config/connectivity/connectivity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/connectivity/connectivity.go b/config/connectivity/connectivity.go index fbabec58..f366415d 100644 --- a/config/connectivity/connectivity.go +++ b/config/connectivity/connectivity.go @@ -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}) }