Skip to content

Commit

Permalink
Merge pull request #39 from converged-computing/add-init-response
Browse files Browse the repository at this point in the history
grabdb init: ensure that error returned is checked
  • Loading branch information
vsoch authored May 20, 2024
2 parents 26566b0 + 4e05c9c commit 71640c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ func NewServer(
}

// Run init with any options from the config, and the match algorithm
graphDB.Init(cfg.GraphDatabase.Options)
err = graphDB.Init(cfg.GraphDatabase.Options)
if err != nil {
log.Fatal(err)
}
log.Printf("🧩️ graph database: %v", graphDB.Name())

// init the database, creating jobs and clusters tables
Expand Down

0 comments on commit 71640c9

Please sign in to comment.