Skip to content

Commit

Permalink
simplify the timeout assignation
Browse files Browse the repository at this point in the history
Signed-off-by: kpacha <[email protected]>
  • Loading branch information
kpacha committed Mar 7, 2024
1 parent 9350287 commit ebe2413
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions async/asyncagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ func (a AgentStarter) Start(
logger.Debug(fmt.Sprintf("[SERVICE: AsyncAgent][%s] Starting the async agent", agent.Name))

for i := range agent.Backend {
b := agent.Backend[i]
b.Timeout = agent.Consumer.Timeout
agent.Backend[i] = b
agent.Backend[i].Timeout = agent.Consumer.Timeout
}

endpoint := &config.EndpointConfig{
Expand Down

0 comments on commit ebe2413

Please sign in to comment.