Stop using magic init function

This commit is contained in:
Nicolai Skogheim
2020-09-13 15:12:16 +02:00
parent 45d697f61d
commit 49a7c64f30
+2 -2
View File
@@ -6449,7 +6449,7 @@ func runInit(ctx context.Context) {
log.Printf("Finished INIT")
}
func init() {
func initHandlers() {
var err error
ctx := context.Background()
@@ -6575,7 +6575,7 @@ func init() {
// Had to move away from mux, which means Method is fucked up right now.
func main() {
//init()
initHandlers()
hostname, err := os.Hostname()
if err != nil {
hostname = "MISSING"