chore: Restore go1.20 support
This commit is contained in:
parent
62266010ac
commit
42b85de83e
@ -64,7 +64,9 @@ func putMsgToCacheWithExpire(c *cache.LruCache[string, *D.Msg], key string, msg
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
sec = max(sec, 120) // at least 2 minutes to cache
|
if sec > 120 {
|
||||||
|
sec = 120 // at least 2 minutes to cache
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user