fix: rmq
This commit is contained in:
parent
6a5994e33e
commit
62e0633e69
4 changed files with 53 additions and 187 deletions
|
|
@ -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},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue