refactor: Update main.go to process Civial Aviation Authority Telegram messages and add CLI flag for Nats server address and topic

This commit is contained in:
windyboy
2024-08-05 10:58:20 +08:00
parent c54bcbc0a8
commit 3c917c93af
3 changed files with 49 additions and 23 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
nc "github.com/nats-io/nats.go"
)
func Subscribe(config *config.Config, marshaler *handlers.PlainTextMarshaler, handler *handlers.NatsHandler) {
func Subscribe(config *config.Config, marshaler *handlers.PlainTextMarshaler, handler *handlers.MessageHandler) {
// marshaler := &PlainTextMarshaler{}
logger := watermill.NewStdLogger(false, false)
options := []nc.Option{