Skip to content

Commit 59ee29f

Browse files
committed
Fix loading AWS libraries to improve performance
1 parent 31e699a commit 59ee29f

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 4.0.0");
46

57
// Configure the S3 bucket and key prefix for stored raw emails, and the
@@ -257,7 +259,6 @@ exports.handler = function(event, context, callback, overrides) {
257259
exports.processMessage,
258260
exports.sendMessage
259261
];
260-
var AWS = require('aws-sdk');
261262
var data = {
262263
event: event,
263264
callback: callback,

0 commit comments

Comments
 (0)