From 41d4805d584161ca16b8187194385e47c36422a6 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 2 Dec 2021 17:53:47 +0100 Subject: cmd/moncheck - fix missing return value --- cmd/moncheck/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/moncheck/main.go b/cmd/moncheck/main.go index b987186..73eee1a 100644 --- a/cmd/moncheck/main.go +++ b/cmd/moncheck/main.go @@ -16,7 +16,6 @@ import ( "time" "git.zero-knowledge.org/gibheer/monzero" - "github.com/lib/pq" ) var ( @@ -71,13 +70,16 @@ func main() { log.Fatalf("could not resolve hostname: %s", err) } - checker := monzero.NewChecker(monzero.CheckerConfig{ - CheckerID: cfg.CheckerID, + checker, err := monzero.NewChecker(monzero.CheckerConfig{ + CheckerID: config.CheckerID, DB: db, Timeout: timeout, HostIdentifier: hostname, Executor: monzero.CheckExec, }) + if err != nil { + log.Fatalf("could not create checker instance: %s", err) + } for i := 0; i < config.Workers; i++ { go check(checker, waitDuration) -- cgit v1.2.3-70-g09d2