fix(storage): Zero allocation issue with fiber (#1273)

* fix(storage): Zero allocation issue with fiber

* ci: Bump Go version
This commit is contained in:
TwiN authored and GitHub committed 2025-09-19 11:38:46 -04:00
1 parent 0d2a55cf11
commit bd793305e9
7 files changed
+12 -9

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ func (a *API) createRouter(cfg *config.Config) *fiber.App {
},
ReadBufferSize: cfg.Web.ReadBufferSize,
Network: fiber.NetworkTCP,
Immutable: true, // If not enabled, will cause issues due to fiber's zero allocation. See #1268 and https://docs.gofiber.io/#zero-allocation
})
if os.Getenv("ENVIRONMENT") == "dev" {
app.Use(cors.New(cors.Config{