1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-05-11 10:10:40 +00:00

Remove global variable

This commit is contained in:
hi019 2021-03-01 16:30:04 -05:00
parent 86e43593cd
commit 2d4d2f7c47

@ -6,12 +6,10 @@ import (
"github.com/gofiber/fiber/v2"
)
var cfg Config
// New creates a new middleware handler
func New(config ...Config) fiber.Handler {
// Set default config
cfg = configDefault(config...)
cfg := configDefault(config...)
// Create manager to simplify storage operations ( see manager.go )
manager := newManager(cfg.Storage)