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

being nit picky

parent a5ce53c3
No related branches found
No related tags found
Loading
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) { ...@@ -54,7 +54,7 @@ func (c Core) Init(socket, filename string) {
c.config.CliSocket = socket 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() { func (c Core) Shutdown() {
......
...@@ -10,6 +10,6 @@ type MockDatabase struct { ...@@ -10,6 +10,6 @@ type MockDatabase struct {
func (db MockDatabase) DropTables() { func (db MockDatabase) DropTables() {
} }
func NewDatabaseClient(uri, username, password string, encrypted bool) Database { func NewMockDatabaseClient(uri, username, password string, encrypted bool) Database {
return MockDatabase{} return MockDatabase{}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment