Chore: Enable golangci-lint

Add a GitHub actions workflow to run golangci-lint.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ
2025-01-05 18:36:25 +01:00
parent d3641bb4b9
commit 75296b4b7e
9 changed files with 63 additions and 23 deletions

2
ntp.go
View File

@@ -20,7 +20,6 @@ const (
)
var (
timeSynced = false
timeSyncRetryInterval = 0 * time.Second
defaultNTPServers = []string{
"time.cloudflare.com",
@@ -58,7 +57,6 @@ func TimeSyncLoop() {
continue
}
logger.Infof("Time sync successful, now is: %v, time taken: %v", time.Now(), time.Since(start))
timeSynced = true
time.Sleep(timeSyncInterval) // after the first sync is done
}
}