From 84cd830a7fd03981ca3822679f8e3d21febd7434 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sat, 9 Apr 2022 15:42:56 +0300 Subject: [PATCH] fix: disable rate limiter (need to be configured properly) --- main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 455963b..ff3fd54 100644 --- a/main.go +++ b/main.go @@ -9,10 +9,11 @@ import ( "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/compress" "github.com/gofiber/fiber/v2/middleware/etag" - "github.com/gofiber/fiber/v2/middleware/limiter" "github.com/gofiber/fiber/v2/middleware/recover" "github.com/gofiber/template/html" + // "github.com/gofiber/fiber/v2/middleware/limiter" + "micrach/build" "micrach/config" "micrach/controllers" @@ -49,9 +50,9 @@ func main() { app := fiber.New(fiber.Config{Views: engine}) app.Use(recover.New()) - app.Use(limiter.New(limiter.Config{ - Next: func(c *fiber.Ctx) bool { return c.IsFromLocal() }, - })) + // app.Use(limiter.New(limiter.Config{ + // Next: func(c *fiber.Ctx) bool { return c.IsFromLocal() }, + // })) app.Use(compress.New()) app.Use(etag.New())