Skip to content

Commit

Permalink
fix: vfs .InitFS => .SetupFS.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Feb 23, 2024
1 parent 50462c3 commit aac50e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/vasedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ func init() {

clog.Info("Initial logger successful")

err = vfs.InitFS(conf.Settings.Path)
// 根据配置数据文件路径挂载文件系统
err = vfs.SetupFS(conf.Settings.Path)
if err != nil {
clog.Failed(err)
}
Expand Down
4 changes: 2 additions & 2 deletions vfs/filesys.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/auula/vasedb/utils"
)

// InitFS build vasedb file system
func InitFS(path string) error {
// SetupFS build vasedb file system
func SetupFS(path string) error {

// 拼接文件路径
for _, dir := range conf.Dirs {
Expand Down

0 comments on commit aac50e1

Please sign in to comment.