mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 19:30:04 -06:00
⬆️ Upgrade kernel deps
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user