🎨 Improve init block tree

This commit is contained in:
Daniel 2023-06-19 11:12:19 +08:00
parent 3d79a903d1
commit 3e06c5db2a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 3 additions and 7 deletions

View file

@ -19,7 +19,6 @@ package treenode
import (
"os"
"path/filepath"
"runtime/debug"
"strings"
"sync"
"time"
@ -443,7 +442,6 @@ func InitBlockTree(force bool) {
waitGroup.Wait()
p.Release()
debug.FreeOSMemory()
elapsed := time.Since(start).Seconds()
logging.LogInfof("read block tree [%s] to [%s], elapsed [%.2fs]", humanize.Bytes(uint64(size)), util.BlockTreePath, elapsed)
return