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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user