From 1aca93f2507b018df8453219e21445560300c96b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 27 Jul 2020 13:02:55 +0300 Subject: [PATCH] Remove http.ListenAndServe in wrong place --- main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.go b/main.go index 231c27f..2bd04a0 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,6 @@ package main import ( "fmt" - "net/http" "os" "os/signal" "strings" @@ -38,8 +37,6 @@ import ( "maunium.net/go/mautrix-whatsapp/database" "maunium.net/go/mautrix-whatsapp/database/upgrades" "maunium.net/go/mautrix-whatsapp/types" - - "github.com/prometheus/client_golang/prometheus/promhttp" ) var ( @@ -406,9 +403,6 @@ func (bridge *Bridge) Main() { bridge.Start() bridge.Log.Infoln("Bridge started!") - http.Handle("/metrics", promhttp.Handler()) - http.ListenAndServe("127.0.0.1:9093", nil) - c := make(chan os.Signal) signal.Notify(c, os.Interrupt, syscall.SIGTERM) <-c