mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
chore: Restore go1.20 support
This commit is contained in:
parent
f97dd6838a
commit
2e60b9a81c
|
@ -64,7 +64,9 @@ func putMsgToCacheWithExpire(c *cache.LruCache[string, *D.Msg], key string, msg
|
|||
return
|
||||
}
|
||||
|
||||
sec = max(sec, 120) // at least 2 minutes to cache
|
||||
if sec > 120 {
|
||||
sec = 120 // at least 2 minutes to cache
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user