浏览代码

:recycle: Improve database loading performance https://github.com/siyuan-note/siyuan/issues/12818

Daniel 9 月之前
父节点
当前提交
d675496e52
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      kernel/sql/block.go

+ 0 - 2
kernel/sql/block.go

@@ -290,8 +290,6 @@ func BatchGetBlockAttrs(ids []string) (ret map[string]map[string]string) {
 }
 }
 
 
 func GetBlockAttrs(id string) (ret map[string]string) {
 func GetBlockAttrs(id string) (ret map[string]string) {
-	ret = map[string]string{}
-
 	ret = map[string]string{}
 	ret = map[string]string{}
 	if cached := cache.GetBlockIAL(id); nil != cached {
 	if cached := cache.GetBlockIAL(id); nil != cached {
 		ret = cached
 		ret = cached