Skip to content

Commit

Permalink
failure simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
kayprogrammer committed Dec 23, 2024
1 parent acdee5a commit df19158
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ services:
depends_on:
- db
command: air ./main.go -b 0.0.0.0
networks:
- shared_network

pgadmin:
container_name: pgadmin
Expand Down
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import (
// @name Authorization
// @description Type 'Bearer jwt_string' to correctly set the API Key
func main() {
log.Fatal("Simulating failure for testing purposes")

// Load config
conf := config.GetConfig()

Expand Down Expand Up @@ -55,9 +57,9 @@ func main() {
app.Use(swagger.New(swaggerCfg))
// Register Routes & Sockets
routes.SetupRoutes(app, db)

// RUN JOBS
jobs.RunJobs(conf, db)
log.Fatal(app.Listen(":" + conf.Port))

}
}

0 comments on commit df19158

Please sign in to comment.