feat: now back wait for RMQ answer
This commit is contained in:
parent
a29aefbe97
commit
ab29c33f5b
4 changed files with 143 additions and 30 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue