⬆️ Upgrade kernel deps

This commit is contained in:
Daniel 2024-09-22 10:41:11 +08:00
parent 0aaa4299d7
commit c765bcc36f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 12 additions and 12 deletions

View file

@ -37,7 +37,7 @@ func disableCache() {
cacheDisabled = true
}
var blockCache, _ = ristretto.NewCache(&ristretto.Config{
var blockCache, _ = ristretto.NewCache[string, *Block](&ristretto.Config[string, *Block]{
NumCounters: 102400,
MaxCost: 10240,
BufferItems: 64,
@ -67,7 +67,7 @@ func getBlockCache(id string) (ret *Block) {
b, _ := blockCache.Get(id)
if nil != b {
ret = b.(*Block)
ret = b
}
return
}