refactor subscribe (#4)

*  Refactor nats subscribe method and remove unused argument.

*  Add logging for message insertion 📝
This commit is contained in:
windyboy
2024-08-14 09:40:47 +08:00
committed by GitHub
parent 5470118461
commit 6b44c2d7a0
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -83,6 +83,6 @@ func executeListen(c *cli.Context) error {
log := utils.GetLogger()
log.Info("Starting nats subscriber")
// handler := handlers.New(cfg)
nats.Subscribe(cfg, &nats.PlainTextMarshaler{})
nats.Subscribe(cfg)
return nil
}