From 83735b0a65f00f780c418584a70d21ef4aa03e67 Mon Sep 17 00:00:00 2001 From: pieceowater Date: Tue, 8 Oct 2024 00:18:58 +0500 Subject: [PATCH] + --- internal/boot/bootstrap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/boot/bootstrap.go b/internal/boot/bootstrap.go index 1e52ada..6917240 100644 --- a/internal/boot/bootstrap.go +++ b/internal/boot/bootstrap.go @@ -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() @@ -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)