log enabled dep

This commit is contained in:
nquidox 2026-04-08 12:15:24 +03:00
parent c5013c03ff
commit b29e60b712
6 changed files with 39 additions and 21 deletions

View file

@ -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 {

View file

@ -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)