Skip to content

Commit

Permalink
remove http fix for now. seems unnecessary now that most fixes have b…
Browse files Browse the repository at this point in the history
…een merged into main. also having http/smithy breaks compat w/ Cf worker
  • Loading branch information
frankleng committed Aug 28, 2023
1 parent 763702d commit ed3f35d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dynadash",
"version": "1.9.10",
"version": "1.9.11",
"description": "DynamoDb helpers",
"main": "dist/index.js",
"types": "dist/types/index.d.ts",
Expand Down
13 changes: 0 additions & 13 deletions src/client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { DynamoDBClient, DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
import https from "https";
import http from "http";

export let ddbClientInstance: DynamoDBClient | null = null;

Expand All @@ -13,16 +10,6 @@ export function initDdbClient(
ddbClientInstance = new DynamoDBClient({
credentialDefaultProvider,
maxAttempts,
requestHandler: new NodeHttpHandler({
socketTimeout: 10000,
connectionTimeout: 10000,
httpsAgent: new https.Agent({
maxSockets: 50,
}),
httpAgent: new http.Agent({
maxSockets: 50,
}),
}),
});
}
return ddbClientInstance;
Expand Down

0 comments on commit ed3f35d

Please sign in to comment.