rename config for split agent and futur intel
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
f038386f8b
commit
2f736cfe5e
2 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"git.g3e.fr/syonad/two/internal/config"
|
||||
configuration "git.g3e.fr/syonad/two/internal/config/agent"
|
||||
"git.g3e.fr/syonad/two/pkg/db/kv"
|
||||
"github.com/dgraph-io/badger/v4"
|
||||
)
|
||||
|
|
@ -125,14 +125,14 @@ func printDB() {
|
|||
}
|
||||
|
||||
func main() {
|
||||
configuration, err := config.LoadConfig("./two.yaml")
|
||||
conf, err := configuration.LoadConfig("./two.yaml")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
|
||||
DB = kv.InitDB(kv.Config{
|
||||
Path: configuration.Database.Path,
|
||||
Path: conf.Database.Path,
|
||||
})
|
||||
defer DB.Close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue