Skip to content

Commit

Permalink
Modifying folder back to original as that was not the problem, changi…
Browse files Browse the repository at this point in the history
…ng mysql config file to be locally close to program
  • Loading branch information
Evan Langlais committed Apr 2, 2019
1 parent 16d9e28 commit e2fd487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
avro "Gateway Server/model"
avro "Gateway-Server/model"
"bytes"
"context"
"database/sql"
Expand Down Expand Up @@ -45,7 +45,7 @@ func main() {
}

func dbConnect() {
sqlConf, err := ioutil.ReadFile("/root/.mysql_goconf") // Read the db config file
sqlConf, err := ioutil.ReadFile(".mysql_goconf") // Read the db config file
if err != nil {
fmt.Printf("Error reading MySQL config file: %v\n", err)
os.Exit(1) // If we can't connect to the database there's not much point in continuing
Expand Down

0 comments on commit e2fd487

Please sign in to comment.