yats.git

commit c4e5f326a6a01d9777b26b5b5ae0c944e0230c81

Author: Paolo Lulli <paolo@lulli.net>

Restore db connection init

 server/main.go | 3 ++-


diff --git a/server/main.go b/server/main.go
index 6bda109c1c1ec34a33b4acc19e9781568c699158..3cef44af8e1054c066c14da115b488835db8ea8f 100644
--- a/server/main.go
+++ b/server/main.go
@@ -15,6 +15,7 @@ 	"fmt"
 	"os"
 	"strings"
 	"yats-server/config"
+	"yats-server/db"
 	"yats-server/docs"
 	"yats-server/grpc"
 )
@@ -51,7 +52,7 @@ 		fmt.Printf("Loading instance: [%s] config", instanceName)
 		configuration = config.GetConfig(os.Getenv("HOME") + "/.yats/" + instanceName + ".json")
 	}
 
-	//db.Session = db.InitializeDb(configuration)
+	db.Session = db.InitializeDb(configuration)
 
 	if configuration.IsArchiveNode == "true" {
 		fmt.Println("Starting Archive Node")