提交 0ecb62d7 编写于 作者: X xiaojianming

fmt->log

上级 ebce16d8
......@@ -7,6 +7,7 @@ import (
//"time"
//"github.com/tecbot/gorocksdb"
"github.com/yottachain/YTDataNode/logger"
"github.com/mr-tron/base58/base58"
"github.com/yottachain/YTDataNode/util"
ydcommon "github.com/yottachain/YTFS/common"
......@@ -103,10 +104,10 @@ func NewYTFS(dir string, config *opt.Options) (*YTFS, error) {
func openYTFS(dir string, config *opt.Options) (*YTFS, error) {
fileName := path.Join(dir, "maindb")
if config.UseKvDb || PathExists(fileName){
fmt.Println("use rocksdb")
log.Println("use rocksdb")
return openYTFSK(dir,config)
}
fmt.Println("use indexdb")
log.Println("use indexdb")
return openYTFSI(dir,config)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册