fix: rmq
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m46s
Build and Deploy Go App / deploy (push) Successful in 53s

This commit is contained in:
Iron_Felix 2025-12-05 21:20:51 +03:00
parent 6a5994e33e
commit 62e0633e69
4 changed files with 53 additions and 187 deletions

View file

@ -59,10 +59,9 @@ func main() {
}
defer rmqConn.Close()
publisher := rmq.NewPublisher(rmqConn)
rpcClient := rmq.NewRPCClient(rmqConn, 30*time.Second)
server := handlers.NewServer(queries, publisher, rpcClient)
server := handlers.NewServer(queries, rpcClient)
r.Use(cors.New(cors.Config{
AllowOrigins: []string{AppConfig.ServiceAddress},