Skip to content

Commit

Permalink
Run initial service fetch in goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
benbusby committed Jan 22, 2025
1 parent 603a355 commit 6ae7c60
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ func main() {
log.Fatal(err)
}

err = services.InitializeServices()
if err != nil {
log.Fatal(err)
}
go func() {
err = services.InitializeServices()
if err != nil {
log.Println("Error intializing services", err)
}
}()

db.InitCronTasks()

Expand Down

0 comments on commit 6ae7c60

Please sign in to comment.