Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
pieceowater committed Oct 7, 2024
1 parent 086c434 commit 83735b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/boot/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (b *Bootstrap) Setup(cfg conf.Config, startupFunc func() any, messageHandle
envInst := &env.Env{}
envInst.Init(cfg.Env.Required)

// Initialize the database
// Initialize the databases if it exists
if cfg.Database.PG.EnvPostgresDBDSN != "" {
b.PGDB = pg.NewPGDB(cfg.Database.PG)
b.PGDB.InitDB()
Expand All @@ -53,7 +53,7 @@ func (b *Bootstrap) Setup(cfg conf.Config, startupFunc func() any, messageHandle
startupFunc()
}

// Setup AMQP Consumers
// Setup AMQP Consumers if it exists
if len(cfg.AMQPConsumer.Consume) != 0 {
net := &infra.AMQP{ConsumerConfig: cfg.AMQPConsumer}
net.SetupAMQPConsumers(messageHandler)
Expand Down

0 comments on commit 83735b0

Please sign in to comment.