View Code? Open in Web Editor
NEW
:zap: A collection of common functions but with better performance, less allocations and less dependencies created for Fiber.
Home Page: https://gofiber.github.io/utils/
License: MIT License
utils's People
utils's Issues
Feature Description
Should use the same config as on the main repo.
Additional Context (optional)
No response
Code Snippet (optional)
No response
Checklist:
Feature Description
There should be a way to stop the timestamp updater again so we don't leak a goroutine.
When using Uber's goleak
you have to manually ignore these after shutting down the fiber server:
package handlers_test
import (
"testing"
"go.uber.org/goleak"
)
func TestMain(m *testing.M) {
goleak.VerifyTestMain(
m,
// TODO: Fix those leaks upstream
goleak.IgnoreTopFunction("time.Sleep"), // https://github.com/valyala/fasthttp/blob/0be5a4150cb0e35605cffd09e922707355dbdec3/fs.go#L477-L480
goleak.IgnoreTopFunction("github.com/gofiber/fiber/v2/internal/memory.(*Storage).gc"),
goleak.IgnoreTopFunction("github.com/gofiber/fiber/v2/internal/storage/memory.(*Storage).gc"),
goleak.IgnoreTopFunction("github.com/gofiber/fiber/v2/internal/storage/memory.New.StartTimeStampUpdater.func1.1"),
goleak.IgnoreTopFunction("github.com/gofiber/fiber/v2/utils.StartTimeStampUpdater.func1.1"),
)
}
Additional Context (optional)
No response
Code Snippet (optional)
No response
Checklist: