refactor: Update ARR body parsing logic

The code changes in `pattern_test.go` update the ARR body parsing logic. The message body parsing now correctly handles ARR bodies with a different pattern format. This ensures accurate extraction of data based on patterns and improves the overall functionality of the code.
This commit is contained in:
windyboy
2024-07-24 11:07:04 +08:00
parent 496dc2b9d0
commit 738ce16f34
8 changed files with 196 additions and 149 deletions
+3
View File
@@ -3,12 +3,14 @@ package main
import (
"caatsm/internal/config"
"caatsm/internal/nats"
"caatsm/pkg/utils"
"fmt"
)
func main() {
cfg, err := config.LoadConfig()
log := utils.GetLogger()
if err != nil {
fmt.Printf("Error loading configuration: %v\n", err)
return
@@ -21,6 +23,7 @@ func main() {
fmt.Println("Loaded configuration successfully")
log.Info("Starting nats subscriber")
subscribe := nats.NewNatsHandler(cfg)
subscribe.Subscribe()
}