diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-05-23 18:04:50 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-05-23 18:04:50 -0400 |
| commit | f719e24fde3f054a4d664150f55d64a1e10519a7 (patch) | |
| tree | 64f441247706510221bfef5f9bfb98e8d8e2888e /cmd/mi/main.go | |
| parent | 21ba75567eca66b73dc3d4641ab4d5808362bc37 (diff) | |
| download | x-f719e24fde3f054a4d664150f55d64a1e10519a7.tar.xz x-f719e24fde3f054a4d664150f55d64a1e10519a7.zip | |
cmd/mi: fix?
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/mi/main.go')
| -rw-r--r-- | cmd/mi/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mi/main.go b/cmd/mi/main.go index 835ba85..aa36127 100644 --- a/cmd/mi/main.go +++ b/cmd/mi/main.go @@ -68,7 +68,7 @@ func main() { i := &Importer{db: dao.DB()} i.Mount(http.DefaultServeMux) - http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { if err := dao.Ping(r.Context()); err != nil { slog.Error("database not healthy", "err", err) http.Error(w, "database not healthy", http.StatusInternalServerError) |
