✨ Update README with configuration details, add default test configuration, and implement TelegramMapper tests. Enhance message processing to set timestamps and improve error handling in the processor. Refactor NATS consumer configuration and ensure proper handling of message attributes.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
[nats]
|
||||
url = "nats://localhost:4222"
|
||||
stream = "TELEGRAM"
|
||||
|
||||
[publisher]
|
||||
topic = "telegram.json"
|
||||
|
||||
[postgres]
|
||||
url = "postgres://user:password@localhost:5432/aviation?sslmode=disable"
|
||||
max_conns = 2
|
||||
min_conns = 1
|
||||
|
||||
[app]
|
||||
batch_size = 1
|
||||
batch_timeout = "1s"
|
||||
monitor_interval = "1s"
|
||||
|
||||
[log]
|
||||
level = "info"
|
||||
format = "json"
|
||||
|
||||
Reference in New Issue
Block a user