fix mongoDBConfig
This commit is contained in:
parent
61106ecdc1
commit
506a78c566
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
// MongoDBConfig ...
|
// MongoDBConfig ...
|
||||||
type MongoDBConfig struct {
|
type MongoDBConfig struct {
|
||||||
Host, User, Password, DBName, mechanism, source string
|
Host, User, Password, DBName, Mechanism, Source string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config ...
|
// Config ...
|
||||||
|
@ -41,8 +41,8 @@ func Init(config Config) (*Service, error) {
|
||||||
config.MongoDB.User,
|
config.MongoDB.User,
|
||||||
config.MongoDB.Password,
|
config.MongoDB.Password,
|
||||||
config.MongoDB.DBName,
|
config.MongoDB.DBName,
|
||||||
config.MongoDB.mechanism,
|
config.MongoDB.Mechanism,
|
||||||
config.MongoDB.source,
|
config.MongoDB.Source,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Cannot init module DEVICE MANAGEMENT", err)
|
fmt.Println("Cannot init module DEVICE MANAGEMENT", err)
|
||||||
|
|
Loading…
Reference in New Issue