Merge pull request 'fix' (#4) from master into dev
Reviewed-on: https://gitea.chocomarsh.com/self/monitoring/pulls/4
This commit is contained in:
commit
2dec242a6d
6
main.go
6
main.go
@ -29,7 +29,11 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
|
||||
}
|
||||
|
||||
func main() {
|
||||
client.Connect()
|
||||
err := client.Connect()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
http.HandleFunc("/api/v1/metrics/endpoint", handlerWrapper(endpoint.AddEndpointMetric))
|
||||
log.Printf("Server started")
|
||||
http.ListenAndServe(":1237", nil)
|
||||
|
Loading…
Reference in New Issue
Block a user