From 49a7c64f3084556432a1e5be0104b87b76683b6e Mon Sep 17 00:00:00 2001 From: Nicolai Skogheim Date: Sun, 13 Sep 2020 15:12:16 +0200 Subject: [PATCH] Stop using magic init function --- backend/go-app/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 3530ad73..bb61eaa7 100644 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -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"