From ca40f6cf86aae793eb01618476a33cd9262db359 Mon Sep 17 00:00:00 2001 From: David Hontecillas Date: Tue, 17 Oct 2023 17:12:44 +0200 Subject: [PATCH] remove call to force initialization in gin that was not happening in other partes (fixed) Signed-off-by: David Hontecillas --- router/gin/router.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/router/gin/router.go b/router/gin/router.go index 040c39ac6..21b2fa127 100644 --- a/router/gin/router.go +++ b/router/gin/router.go @@ -102,10 +102,6 @@ func (r ginRouter) Run(cfg config.ServiceConfig) { r.registerEndpointsAndMiddlewares(cfg) - // TODO: remove this ugly hack once https://github.com/gin-gonic/gin/pull/2692 and - // https://github.com/gin-gonic/gin/issues/2862 are completely fixed - go r.cfg.Engine.Run("XXXX") - r.cfg.Logger.Info("[SERVICE: Gin] Listening on port:", cfg.Port) if err := r.runServerF(r.ctx, cfg, r.cfg.Engine.Handler()); err != nil && err != http.ErrServerClosed { r.cfg.Logger.Error(logPrefix, err.Error())