fix: avoid duplicate healthz route

This commit is contained in:
Haitao Pan 2026-01-24 00:50:47 +08:00
parent bb999fb2a9
commit cfbb363a9f

View File

@ -82,9 +82,6 @@ func runServer(ctx context.Context, cfg *config.Config, logger *slog.Logger) err
c.Next()
logger.Info("request", "method", c.Request.Method, "path", c.FullPath(), "status", c.Writer.Status(), "latency", time.Since(start))
})
r.GET("/healthz", func(c *gin.Context) {
c.Status(http.StatusOK)
})
storeCfg := store.Config{
Driver: cfg.Store.Driver,