Skip to content
This repository was archived by the owner on Mar 3, 2024. It is now read-only.

Commit 209982c

Browse files
committed
removed rate limiter
1 parent 2e24a50 commit 209982c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

main.go

+4-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ import (
66
"devsoc23-backend/routes"
77
"log"
88
"os"
9-
"time"
109

1110
"github.com/getsentry/sentry-go"
1211
"github.com/gofiber/fiber/v2"
1312
"github.com/gofiber/fiber/v2/middleware/cors"
14-
"github.com/gofiber/fiber/v2/middleware/limiter"
1513
"github.com/gofiber/fiber/v2/middleware/logger"
1614
)
1715

@@ -37,10 +35,10 @@ func main() {
3735
}))
3836

3937
// Api rate limiter
40-
app.Use(limiter.New(limiter.Config{
41-
Max: 100,
42-
Expiration: 30 * time.Second,
43-
}))
38+
// app.Use(limiter.New(limiter.Config{
39+
// Max: 100,
40+
// Expiration: 30 * time.Second,
41+
// }))
4442
app.Use(logger.New())
4543

4644
handler := database.NewDatabase()

0 commit comments

Comments
 (0)