mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 05:48:49 +01:00
⬆️ Upgrade kernel deps
This commit is contained in:
parent
3ba3d3e63d
commit
76b876ba3c
5 changed files with 13 additions and 13 deletions
|
|
@ -38,7 +38,7 @@ import (
|
|||
|
||||
// virtualBlockRefCache 用于保存块关联的虚拟引用关键字。
|
||||
// 改进打开虚拟引用后加载文档的性能 https://github.com/siyuan-note/siyuan/issues/7378
|
||||
var virtualBlockRefCache, _ = ristretto.NewCache[string, []string](&ristretto.Config[string, []string]{
|
||||
var virtualBlockRefCache, _ = ristretto.NewCache(&ristretto.Config{
|
||||
NumCounters: 102400,
|
||||
MaxCost: 10240,
|
||||
BufferItems: 64,
|
||||
|
|
@ -61,7 +61,7 @@ func getBlockVirtualRefKeywords(root *ast.Node) (ret []string) {
|
|||
ret = putBlockVirtualRefKeywords(content, root)
|
||||
return
|
||||
}
|
||||
ret = val
|
||||
ret = val.([]string)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -217,7 +217,7 @@ func getVirtualRefKeywords(root *ast.Node) (ret []string) {
|
|||
}
|
||||
|
||||
if val, ok := virtualBlockRefCache.Get("virtual_ref"); ok {
|
||||
ret = val
|
||||
ret = val.([]string)
|
||||
}
|
||||
|
||||
if "" != strings.TrimSpace(Conf.Editor.VirtualBlockRefInclude) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue