Skip to content

Commit

Permalink
Implement CloseSession
Browse files Browse the repository at this point in the history
  • Loading branch information
zxia-wish committed Jun 24, 2021
1 parent d09a955 commit bb3c3b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion etc/eventmaster.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"data_store": "cassandra",
"data_store": "postgres",
"postgres_config": {
"addr": "127.0.0.1",
"port": 5432,
"database": "eventmaster",
"username": "postgres",
"password": "password"
},
"cassandra_config": {
"addrs": ["127.0.0.1:9042"],
"keyspace": "event_master",
Expand Down
3 changes: 1 addition & 2 deletions postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,5 @@ func (p *PostgresStore) UpdateDC(string, string) error {
}

func (p *PostgresStore) CloseSession() {
// TODO: implement this function
return
p.db.Close()
}

0 comments on commit bb3c3b1

Please sign in to comment.