Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Remove Thundra init from lambda bootstrap file (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaglayan committed Apr 4, 2022
1 parent 699da34 commit 9a04b8b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bootstrap/lambda/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const thundra = require('../../thundraBridge');

const ORIGINAL_HANDLER_ENV_VAR_NAME = '_HANDLER';
const THUNDRA_HANDLER_ENV_VAR_NAME = 'THUNDRA_AGENT_LAMBDA_HANDLER';
const LAMBDA_TASK_ROOT_ENV_VAR_NAME = 'LAMBDA_TASK_ROOT';
Expand All @@ -20,6 +18,4 @@ if (thundraHandler.endsWith(JS_FILE_EXTENSION)) {

// Switch user handler with Thundra handler
process.env[ORIGINAL_HANDLER_ENV_VAR_NAME] = thundraHandler + '.wrapper';
process.env[THUNDRA_HANDLER_ENV_VAR_NAME] = userHandler;

thundra.init();
process.env[THUNDRA_HANDLER_ENV_VAR_NAME] = userHandler;

0 comments on commit 9a04b8b

Please sign in to comment.