mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-21 06:33:11 +00:00
Change default gc interval. (#1756)
This commit is contained in:
parent
68fcd8c88f
commit
8bd1509311
@ -23,7 +23,7 @@ func New() *Storage {
|
||||
data: make(map[string]item),
|
||||
ts: uint32(time.Now().Unix()),
|
||||
}
|
||||
go store.gc(10 * time.Millisecond)
|
||||
go store.gc(1 * time.Second)
|
||||
go store.updater(1 * time.Second)
|
||||
return store
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user