From ef629d3aab932fca62cd31c9d5ab697312a7565b Mon Sep 17 00:00:00 2001 From: Tom Draper Date: Fri, 30 Dec 2022 18:19:16 +0000 Subject: [PATCH 1/2] Correct typo in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index efc4691..418484d 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ func main() { Limit: 5, }) mw := ratelimit.RateLimiter(store, &ratelimit.Options{ - ErrorHanlder: errorHandler, + ErrorHandler: errorHandler, KeyFunc: keyfunc, }) server.GET("/", mw, func(c *gin.Context) { @@ -87,7 +87,7 @@ func main() { Limit: 5, }) mw := ratelimit.RateLimiter(store, &ratelimit.Options{ - ErrorHanlder: errorHandler, + ErrorHandler: errorHandler, KeyFunc: keyfunc, }) server.GET("/", mw, func(c *gin.Context) { From 4c9c409e03433f576d330cf98e1b8c393d602e75 Mon Sep 17 00:00:00 2001 From: Tom Draper Date: Fri, 30 Dec 2022 18:26:08 +0000 Subject: [PATCH 2/2] Correct readme typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 418484d..79504a9 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ func main() { }) mw := ratelimit.RateLimiter(store, &ratelimit.Options{ ErrorHandler: errorHandler, - KeyFunc: keyfunc, + KeyFunc: keyFunc, }) server.GET("/", mw, func(c *gin.Context) { c.String(200, "Hello World") @@ -88,7 +88,7 @@ func main() { }) mw := ratelimit.RateLimiter(store, &ratelimit.Options{ ErrorHandler: errorHandler, - KeyFunc: keyfunc, + KeyFunc: keyFunc, }) server.GET("/", mw, func(c *gin.Context) { c.String(200, "Hello World")