mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
⬆️ Upgrade kernel deps
This commit is contained in:
parent
3ba3d3e63d
commit
76b876ba3c
5 changed files with 13 additions and 13 deletions
|
|
@ -39,7 +39,7 @@ func disableCache() {
|
|||
cacheDisabled = true
|
||||
}
|
||||
|
||||
var blockCache, _ = ristretto.NewCache[string, *Block](&ristretto.Config[string, *Block]{
|
||||
var blockCache, _ = ristretto.NewCache(&ristretto.Config{
|
||||
NumCounters: 102400,
|
||||
MaxCost: 10240,
|
||||
BufferItems: 64,
|
||||
|
|
@ -71,7 +71,7 @@ func getBlockCache(id string) (ret *Block) {
|
|||
|
||||
b, _ := blockCache.Get(id)
|
||||
if nil != b {
|
||||
ret = b
|
||||
ret = b.(*Block)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue