Skip to content

Commit

Permalink
Import Lambda directly to minimize the require time
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Jesper Low Madsen committed Jul 29, 2019
1 parent cc7ca80 commit 21a9519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lambda-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* @license MIT
*/

// Require AWS SDK
const AWS = require('aws-sdk') // AWS SDK
// Require the Lambda client
const Lambda = require('aws-sdk/clients/lambda') // Lambda

// Export
module.exports = new AWS.Lambda()
module.exports = new Lambda()

0 comments on commit 21a9519

Please sign in to comment.