1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00

missed error case

This commit is contained in:
Kane York 2016-05-21 11:38:48 -07:00
parent 613d13652f
commit 88b356177a
2 changed files with 7 additions and 2 deletions

View file

@ -16,6 +16,8 @@ import (
"github.com/clarkduvall/hyperloglog"
)
var _ = os.Exit
var configLocation = flag.String("config", "./config.json", "Location of the configuration file. Defaults to ./config.json")
var genConfig = flag.Bool("genconf", false, "Generate a new configuration file.")
@ -41,8 +43,8 @@ func main() {
allServers[i].Setup(v)
}
printEveryDay()
os.Exit(0)
//printEveryDay()
//os.Exit(0)
http.HandleFunc("/api/get", ServeAPIGet)
http.ListenAndServe(config.ListenAddr, http.DefaultServeMux)
}