From 77c020e434e035e7e16698cafa85c383c5c21a09 Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Fri, 19 Aug 2022 13:39:08 -0500 Subject: [PATCH] Removed uneeded args from hosts.Update --- src/hosts/hosts.go | 2 +- src/rhosts.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hosts/hosts.go b/src/hosts/hosts.go index cd84f33..437f656 100644 --- a/src/hosts/hosts.go +++ b/src/hosts/hosts.go @@ -20,7 +20,7 @@ type siteEntry struct { site string } -func Update(config cfg.Config, tmpdir, hostsloc string, daemon bool, interval int)(err error){ +func Update(config cfg.Config, tmpdir, hostsloc string)(err error){ var siteBuff []siteList err = error(nil) diff --git a/src/rhosts.go b/src/rhosts.go index 4e0de53..4f94720 100644 --- a/src/rhosts.go +++ b/src/rhosts.go @@ -97,8 +97,10 @@ func main() { log.Print(config) if (err != nil){log.Panic("Failed to parse config: " + cfgloc)} + + for true { - err := hosts.Update(config, tmpdir, hostsloc,daemon, interval) + err := hosts.Update(config, tmpdir, hostsloc) if (err != nil){ log.Print(err) }