From 7e6153dc334398e4f3860daaeb618df42b79efb3 Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Wed, 13 May 2015 03:36:32 +0200 Subject: [PATCH] Middleware order changed --- examples/realtime-advanced/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/realtime-advanced/main.go b/examples/realtime-advanced/main.go index 729f0e81..205f9580 100644 --- a/examples/realtime-advanced/main.go +++ b/examples/realtime-advanced/main.go @@ -9,7 +9,7 @@ import ( func main() { router := gin.New() - router.Use(ratelimit, gin.Recovery(), gin.Logger()) + router.Use(gin.Logger(), ratelimit) router.LoadHTMLGlob("resources/*.templ.html") router.Static("/static", "resources/static")