diff --git a/daemon/main.go b/daemon/main.go index ab52ca3..f8de886 100644 --- a/daemon/main.go +++ b/daemon/main.go @@ -116,7 +116,6 @@ func main() { } go printDiscoveryLogs() - go cleanDiscoveryPool() // If config.Register is false this instance won't be registered with other nodes @@ -143,23 +142,6 @@ func main() { e.GET("/v1/", listHandler) e.GET("/v1/prometheus/:name", prometheusHandler) - // e.GET("/template/:template", func(c echo.Context) error { - // templateName := c.Param("template") - // discoveries := discoveryStorage.GetAll() - // var body bytes.Buffer - - // tmpl, err := template.New("main").ParseFiles(path.Join(config.TemplatesPath, templateName)) - // if err != nil { - // return c.String(http.StatusInternalServerError, err.Error()) - // } - // err = tmpl.Execute(&body, &discoveries) - // if err != nil { - // return c.String(http.StatusInternalServerError, err.Error()) - // } - - // return c.String(http.StatusOK, body.String()) - // }) - // ------------------------------ // Termination signals processing // ------------------------------