Skip to content

Commit

Permalink
Reorder env load
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyhedral committed Nov 2, 2024
1 parent de33966 commit d81fb09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/catalog-api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ import (
// @BasePath /
// @schemes http https
func main() {
logging.Init()
_ = godotenv.Load(".env")

godotenv.Load(".env")
logging.Init()

setupSentry()

Expand All @@ -67,7 +67,7 @@ func main() {

server.SetupHandlers(r, cache)

r.Run(util.GetEnv(apiconstants.BIND_ADDRESS, ":8000"))
_ = r.Run(util.GetEnv(apiconstants.BIND_ADDRESS, ":8000"))
}

func setupSentry() {
Expand Down

0 comments on commit d81fb09

Please sign in to comment.