Skip to content

Commit

Permalink
feat: enable HTTP keepalive via env var instead
Browse files Browse the repository at this point in the history
  • Loading branch information
theburningmonk committed Oct 1, 2019
1 parent 7127044 commit bcf22f2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/lambda-powertools-firehose-client/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.AWS_NODEJS_CONNECTION_REUSE_ENABLED = '1'
const AWS = require('aws-sdk')
const client = new AWS.Firehose()
const Log = require('@dazn/lambda-powertools-logger')
Expand Down
1 change: 1 addition & 0 deletions packages/lambda-powertools-kinesis-client/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.AWS_NODEJS_CONNECTION_REUSE_ENABLED = '1'
const AWS = require('aws-sdk')
const client = new AWS.Kinesis()
const Log = require('@dazn/lambda-powertools-logger')
Expand Down
1 change: 1 addition & 0 deletions packages/lambda-powertools-lambda-client/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.AWS_NODEJS_CONNECTION_REUSE_ENABLED = '1'
const AWS = require('aws-sdk')
const client = new AWS.Lambda()
const Log = require('@dazn/lambda-powertools-logger')
Expand Down
1 change: 1 addition & 0 deletions packages/lambda-powertools-sns-client/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.AWS_NODEJS_CONNECTION_REUSE_ENABLED = '1'
const AWS = require('aws-sdk')
const client = new AWS.SNS()
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
Expand Down
1 change: 1 addition & 0 deletions packages/lambda-powertools-sqs-client/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.AWS_NODEJS_CONNECTION_REUSE_ENABLED = '1'
const AWS = require('aws-sdk')
const client = new AWS.SQS()
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
Expand Down
1 change: 1 addition & 0 deletions packages/lambda-powertools-step-functions-client/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.AWS_NODEJS_CONNECTION_REUSE_ENABLED = '1'
const AWS = require('aws-sdk')
const client = new AWS.StepFunctions()
const Log = require('@dazn/lambda-powertools-logger')
Expand Down

0 comments on commit bcf22f2

Please sign in to comment.