Removed uneeded args from hosts.Update
parent
ba490c27d7
commit
77c020e434
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue