Removing a comment

This commit is contained in:
Adam Štrauch 2021-09-04 14:59:16 +02:00
parent 4c5cb1bd85
commit ff7a26e0d4
Signed by: cx
GPG Key ID: 018304FFA8988F8D
1 changed files with 0 additions and 18 deletions

View File

@ -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
// ------------------------------