From d6ed86b82a5841695a684025903cf6a5f1dae1c0 Mon Sep 17 00:00:00 2001 From: genofire Date: Mon, 18 May 2020 00:16:01 +0200 Subject: [PATCH] fix usage of yanic dependencies --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 9a8ceac..4af2e3a 100644 --- a/main.go +++ b/main.go @@ -72,7 +72,11 @@ func main() { log.Printf("delaying %0.1f seconds", delay.Seconds()) time.Sleep(delay) } - collector = respondYanic.NewCollector(yanic, nodesYanic, make(map[string][]string), []respondYanic.InterfaceConfig{config.Yanic}) + collector = respondYanic.NewCollector(yanic, nodesYanic, &respondYanic.Config{ + Enable: true, + Interfaces: []respondYanic.InterfaceConfig{config.Yanic}, + Sites: make(map[string]respondYanic.SiteConfig), + }) if duration := config.YanicCollectInterval.Duration; duration > 0 { collector.Start(config.YanicCollectInterval.Duration) }