Skip to content

Commit

Permalink
merge v3
Browse files Browse the repository at this point in the history
  • Loading branch information
aphralG committed Jan 15, 2025
1 parent bd04da7 commit f436f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/command/command_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ func (cs *CommandService) sendResponseForQueuedConfigApplyRequests(
"response", newResponse,
)

backOffCtx, backoffCancel := context.WithTimeout(ctx, cs.agentConfig.Common.MaxElapsedTime)
backOffCtx, backoffCancel := context.WithTimeout(ctx, cs.agentConfig.Client.Backoff.MaxElapsedTime)

err := backoff.Retry(
cs.sendDataPlaneResponseCallback(ctx, newResponse),
backoffHelpers.Context(backOffCtx, cs.agentConfig.Common),
backoffHelpers.Context(backOffCtx, cs.agentConfig.Client.Backoff),
)
if err != nil {
slog.ErrorContext(ctx, "Failed to send data plane response", "error", err)
Expand Down

0 comments on commit f436f88

Please sign in to comment.