Removed commented code
This commit is contained in:
parent
8170a4c0f7
commit
3cf4ad6781
1 changed files with 0 additions and 6 deletions
|
@ -28,11 +28,6 @@ func NewServer(port uint16, clients []*pihole.Client) *Server {
|
||||||
httpServer: httpServer,
|
httpServer: httpServer,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*fmt.Printf("Server received clients -> %s\n", clients)
|
|
||||||
for i, client := range clients {
|
|
||||||
fmt.Printf("Server received clients -> idx: %d, Hostname: %s\n", i, &client)
|
|
||||||
}*/
|
|
||||||
|
|
||||||
mux.HandleFunc("/metrics",
|
mux.HandleFunc("/metrics",
|
||||||
func(writer http.ResponseWriter, request *http.Request) {
|
func(writer http.ResponseWriter, request *http.Request) {
|
||||||
errors := make([]string, 0)
|
errors := make([]string, 0)
|
||||||
|
@ -54,7 +49,6 @@ func NewServer(port uint16, clients []*pihole.Client) *Server {
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
//mux.Handle("/metrics", client.Metrics())
|
|
||||||
mux.Handle("/readiness", s.readinessHandler())
|
mux.Handle("/readiness", s.readinessHandler())
|
||||||
mux.Handle("/liveness", s.livenessHandler())
|
mux.Handle("/liveness", s.livenessHandler())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue