Skip to content
Snippets Groups Projects
Commit 5ce8cfdc authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch 'controller-config' into 15-need-common-configuration-storage

parents 505aacd5 523e8715
No related branches found
No related tags found
2 merge requests!24Resolve "Need common configuration storage",!18Develop
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
......@@ -54,7 +54,7 @@ func (c Core) Init(socket, filename string) {
c.config.CliSocket = socket
}
c.database = interfaces.NewDatabaseClient(c.config.DatabaseSocket, c.config.DatabaseUser, c.config.DatabasePassword, c.config.DatabaseCrypto)
c.database = interfaces.NewMockDatabaseClient(c.config.DatabaseSocket, c.config.DatabaseUser, c.config.DatabasePassword, c.config.DatabaseCrypto)
}
func (c Core) Shutdown() {
......
......@@ -10,6 +10,6 @@ type MockDatabase struct {
func (db MockDatabase) DropTables() {
}
func NewDatabaseClient(uri, username, password string, encrypted bool) Database {
func NewMockDatabaseClient(uri, username, password string, encrypted bool) Database {
return MockDatabase{}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment