diff --git a/library/httpengine/httpengine.go b/library/httpengine/httpengine.go index 0f22cdec..bbb43be5 100644 --- a/library/httpengine/httpengine.go +++ b/library/httpengine/httpengine.go @@ -10,9 +10,9 @@ func NewRouter() *gin.Engine { gin.SetMode(gin.ReleaseMode) router := gin.New() + router.Use(middleware.TimeoutMiddleware()) router.Use(middleware.LoggerMiddleware(gin.LoggerConfig{})) router.Use(gin.RecoveryWithWriter(logger.Global.Out)) - //router.Use(middleware.TimeoutMiddleware()) return router }