Update main.go
This commit is contained in:
parent
aeb692d616
commit
4ba331fbfd
2
main.go
2
main.go
@ -133,7 +133,7 @@ func (bridge *Bridge) Init() {
|
||||
bridge.AS.StateStore = bridge.StateStore
|
||||
|
||||
bridge.Log.Debugln("Initializing database")
|
||||
bridge.DB, err = database.New(bridge.Config.AppService.Database.URI)
|
||||
bridge.DB, err = database.New(bridge.Config.AppService.Database.Type, bridge.Config.AppService.Database.URI)
|
||||
if err != nil {
|
||||
bridge.Log.Fatalln("Failed to initialize database:", err)
|
||||
os.Exit(14)
|
||||
|
Loading…
Reference in New Issue
Block a user