Simplify names in cmd source
This commit is contained in:
parent
47c9752e5e
commit
c4a19a4e35
6 changed files with 17 additions and 17 deletions
|
|
@ -20,7 +20,7 @@ import (
|
|||
"github.com/google/cayley/graph/mongo"
|
||||
)
|
||||
|
||||
func CayleyInit(cfg *config.CayleyConfig, triplePath string) bool {
|
||||
func Init(cfg *config.CayleyConfig, triplePath string) bool {
|
||||
created := false
|
||||
dbpath := cfg.DatabasePath
|
||||
switch cfg.DatabaseType {
|
||||
|
|
@ -32,8 +32,8 @@ func CayleyInit(cfg *config.CayleyConfig, triplePath string) bool {
|
|||
return true
|
||||
}
|
||||
if created && triplePath != "" {
|
||||
ts := OpenTSFromConfig(cfg)
|
||||
CayleyLoad(ts, cfg, triplePath, true)
|
||||
ts := OpenTSFrom(cfg)
|
||||
Load(ts, cfg, triplePath, true)
|
||||
ts.Close()
|
||||
}
|
||||
return created
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue