refactor(webhook): use gateway request context for transformer adapter timeout by deepshekhardas · Pull Request #6839 · rudderlabs/rudder-server

Conversation

@deepshekhardas

Description\n\nThis PR refactors the existing context in the batchTransformLoop in the webhook.go. Currently there is a TODO: Remove timeout from here after timeout handler is added in gateway.\n\n## Changes\n- Removed context.WithTimeout and the associated cancel() function calls in batchTransformLoop.\n- Replaced the manual context with req.request.Context().\n- Deleted the resolved TODO comment.\n\n## Security\n- The code changed/added as part of this pull request won't create any security issues with how the software is being used.

1 participant

@deepshekhardas