mirror of
https://github.com/gofiber/storage.git
synced 2025-09-27 21:02:20 +08:00
🩹 fix duration check
This commit is contained in:
@@ -119,7 +119,7 @@ func configDefault(config ...Config) Config {
|
||||
if cfg.Table == "" {
|
||||
cfg.Table = ConfigDefault.Table
|
||||
}
|
||||
if int(cfg.GCInterval) == 0 {
|
||||
if int(cfg.GCInterval.Seconds()) <= 0 {
|
||||
cfg.GCInterval = ConfigDefault.GCInterval
|
||||
}
|
||||
return cfg
|
||||
|
Reference in New Issue
Block a user