2
0
mirror of https://github.com/hibiken/asynqmon.git synced 2025-10-26 08:16:10 +08:00

Fix build

This commit is contained in:
Ken Hibino
2021-12-19 13:46:15 -08:00
parent 1b8d46a35e
commit 6359a1977f
20 changed files with 20 additions and 280 deletions

View File

@@ -92,7 +92,7 @@ func newGetMetricsHandlerFunc(client *http.Client, prometheusAddr string) http.H
for r := range ch {
n--
if r.err != nil {
http.Error(w, fmt.Sprintf("failed to fetch %q: %v", r.query, err), http.StatusInternalServerError)
http.Error(w, fmt.Sprintf("failed to fetch %q: %v", r.query, r.err), http.StatusInternalServerError)
return
}
switch r.query {