Skip to content

Commit

Permalink
Fixes to address changed interface for async.whilst in async 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMeyers committed Jan 22, 2020
1 parent 8fa11e3 commit 583f523
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ exports.retryableUpdate = function (dynamoDB, updateRequest, callback) {
var writeRetryLimit = 100;
var done = false;

async.whilst(function () {
async.whilst(function test(test_cb) {
// retry until the try count is hit
return tryNumber < writeRetryLimit && done === false;
test_cb(null, tryNumber < writeRetryLimit && done === false);
}, function (asyncCallback) {
tryNumber++;

Expand Down
Binary file added dist/AWSLambdaRedshiftLoader-2.7.2.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ exports.getConfigWithRetry = function (prefix, callback) {
ConsistentRead: true
};

async.whilst(function () {
async.whilst(function test(test_cb) {
// return OK if the proceed flag has been set, or if
// we've hit the retry count
return !proceed && tryNumber < lookupConfigTries;
test_cb(!proceed && tryNumber < lookupConfigTries);
}, function (callback) {
tryNumber++;

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aws-lambda-redshift-loader",
"description": "An Amazon Redshift Database Loader written for AWS Lambda",
"version": "2.7.1",
"version": "2.7.2",
"homepage": "http://github.com/awslabs/aws-lambda-redshift-loader",
"bugs": {
"url": "http://github.com/awslabs/aws-lambda-redshift-loader/issues",
Expand Down

0 comments on commit 583f523

Please sign in to comment.