refactor(webhook): use gateway request context for transformer adapter timeout by deepshekhardas · Pull Request #6839 · rudderlabs/rudder-server
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters