feat: now back wait for RMQ answer
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m20s
Build and Deploy Go App / deploy (push) Successful in 1m1s

This commit is contained in:
Iron_Felix 2025-11-30 04:02:28 +03:00
parent a29aefbe97
commit ab29c33f5b
4 changed files with 143 additions and 30 deletions

View file

@ -19,13 +19,15 @@ func New(publisher *rmq.Publisher) *Handler {
type Server struct {
db *sqlc.Queries
publisher *rmq.Publisher // ← добавьте это поле
publisher *rmq.Publisher
RPCclient *rmq.RPCClient
}
func NewServer(db *sqlc.Queries, publisher *rmq.Publisher) *Server {
func NewServer(db *sqlc.Queries, publisher *rmq.Publisher, rpcclient *rmq.RPCClient) *Server {
return &Server{
db: db,
publisher: publisher,
RPCclient: rpcclient,
}
}