Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebulizer1213 committed Jul 21, 2022
1 parent d0b827d commit f3d5f30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ func main() {
server := gin.Default()
// This makes it so each ip can only make 5 requests per second
store := GinRateLimit.RedisStore(time.Second, 5, redis.NewClient(&redis.Options{
ReadTimeout: time.Second,
WriteTimeout: time.Second,
IdleTimeout: time.Second * 5,
Addr: "localhost:7680",
}), false)
mw := GinRateLimit.RateLimiter(keyFunc, errorHandler, store)
server.GET("/", mw, func(c *gin.Context) {
Expand Down

0 comments on commit f3d5f30

Please sign in to comment.