Skip to content

Commit

Permalink
main: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhan005 committed May 26, 2024
1 parent 111d44b commit 5022412
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion elaina.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ func main() {
logrus.WithError(err).Fatal("Failed to connect to database")
}

r := route.New(dbInstance)
r, err := route.New(dbInstance)
if err != nil {
logrus.WithError(err).Fatal("Failed to create route")
}
r.Run(*port)
}

0 comments on commit 5022412

Please sign in to comment.