Commit 24524c2d authored by Praful Nalatwad's avatar Praful Nalatwad
Browse files

commented init function

parent 3233615c
Branches
Tags
3 merge requests!270Core ImmuDB package and TOTP plugin - Implementation,!269Core ImmuDB package and TOTP plugin - Implementation,!268immudb version upgrade
Showing with 13 additions and 13 deletions
...@@ -9,21 +9,21 @@ import ( ...@@ -9,21 +9,21 @@ import (
immudb "github.com/codenotary/immudb/pkg/client" immudb "github.com/codenotary/immudb/pkg/client"
) )
// func init() { func init() {
// Creating and connecting two Immu database connection: ImmuDbHost1,ImmuDbHost4 // Creating and connecting two Immu database connection: ImmuDbHost1,ImmuDbHost4
// err := InitImmuDBConnections([]ImmuHost{{"ImmuDbHost1", "localhost", 3322, "defaultdb", "immudb", "immudb", "", true, false}, // err := InitImmuDBConnections([]ImmuHost{{"ImmuDbHost1", "localhost", 3322, "defaultdb", "immudb", "immudb","", true, false},
// {"ImmuDbHost4", "localhost", 3322, "defaultdb", "immudb", "immudb", "", false, false}}) // {"ImmuDbHost4", "localhost", 3322, "defaultdb", "immudb", "immudb", "",false, false}})
// if err != nil { // if err != nil {
// panic(err) // panic(err)
// } // }
// Establishing ImmuDB connection using dbconfig.json file // Establishing ImmuDB connection using dbconfig.json file
// err = InitUsingJson("./dbconfig.json") // err := InitUsingJson("./dbconfig.json")
// if err != nil { // if err != nil {
// panic(err) // panic(err)
// } // }
// } }
func TestInitUsingJson(t *testing.T) { func TestInitUsingJson(t *testing.T) {
type args struct { type args struct {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment