log enabled dep
This commit is contained in:
parent
c5013c03ff
commit
b29e60b712
6 changed files with 39 additions and 21 deletions
|
|
@ -20,11 +20,11 @@ type Addr struct {
|
|||
}
|
||||
|
||||
type Deps struct {
|
||||
Ctx context.Context
|
||||
TA taskAgent.TaskAgent
|
||||
Addr Addr
|
||||
ChanLen uint
|
||||
LoggerEnabled bool
|
||||
Ctx context.Context
|
||||
TA taskAgent.TaskAgent
|
||||
Addr Addr
|
||||
ChanLen uint
|
||||
LoggingEnabled bool
|
||||
}
|
||||
|
||||
func NewHandler(deps Deps) Processor {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ func newService(deps Deps) *service {
|
|||
s := &service{
|
||||
taskAgent: deps.TA,
|
||||
brokerAddr: ba,
|
||||
rabbitLoggingEnabled: deps.LoggerEnabled,
|
||||
rabbitLoggingEnabled: deps.LoggingEnabled,
|
||||
}
|
||||
|
||||
s.makeTaskPublishers(deps.Ctx, ba, deps.ChanLen)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue