Skip to content

Commit 2d6947f

Browse files
authored
Merge pull request arithmetric#34 from jakubboucek/improve-load-performance
Fix loading AWS libraries to improve performance
2 parents 10199d5 + 4bd7ee2 commit 2d6947f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use strict";
22

3+
var AWS = require('aws-sdk');
4+
35
console.log("AWS Lambda SES Forwarder // @arithmetric // Version 3.0.0");
46

57
// Configure the S3 bucket and key prefix for stored raw emails, and the
@@ -260,7 +262,6 @@ exports.handler = function(event, context, overrides) {
260262
];
261263
var step;
262264
var currentStep = 0;
263-
var AWS = require('aws-sdk');
264265
var data = {
265266
event: event,
266267
context: context,

0 commit comments

Comments
 (0)