diff --git a/app/router.go b/app/router.go index 5883b48..764aa13 100644 --- a/app/router.go +++ b/app/router.go @@ -56,6 +56,8 @@ func wrap(handle fasthttp.RequestHandler) fasthttp.RequestHandler { return func(c *fasthttp.RequestCtx) { start := time.Now() + doggo.Incr("requests", nil, 1) + defer func() { if rval := recover(); rval != nil { var err error diff --git a/app/start.go b/app/start.go index 46937e7..fee5512 100644 --- a/app/start.go +++ b/app/start.go @@ -52,9 +52,6 @@ func Start(conf common.Conf, dbO *sqlx.DB) *fhr.Router { fmt.Println(err) } doggo.Namespace = "api." - // r.Use(func(c *gin.Context) { - // doggo.Incr("requests", nil, 1) - // }) // redis red = redis.NewClient(&redis.Options{