Removed uneeded args from hosts.Update

testing
Justin Reichardt 2022-08-19 13:39:08 -05:00
parent ba490c27d7
commit 77c020e434
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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)
}