Skip to content

Commit

Permalink
fix tests (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tebeka authored and appleboy committed Sep 8, 2017
1 parent eed6b99 commit 573c050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_server.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"net/http"

"github.com/gin-contrib/limits"
size "github.com/gin-contrib/size"
"github.com/gin-gonic/gin"
)

Expand All @@ -17,7 +17,7 @@ func handler(ctx *gin.Context) {

func main() {
rtr := gin.Default()
rtr.Use(limits.RateLimiter({{.Size}}))
rtr.Use(size.RateLimiter({{.Size}}))
rtr.POST("/", handler)
rtr.Run(":{{.Port}}")
}

0 comments on commit 573c050

Please sign in to comment.