Skip to content

Commit 583f523

Browse files
committed
Fixes to address changed interface for async.whilst in async 3.0.1
1 parent 8fa11e3 commit 583f523

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ exports.retryableUpdate = function (dynamoDB, updateRequest, callback) {
172172
var writeRetryLimit = 100;
173173
var done = false;
174174

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

1.81 MB
Binary file not shown.

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ exports.getConfigWithRetry = function (prefix, callback) {
9595
ConsistentRead: true
9696
};
9797

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

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "aws-lambda-redshift-loader",
33
"description": "An Amazon Redshift Database Loader written for AWS Lambda",
4-
"version": "2.7.1",
4+
"version": "2.7.2",
55
"homepage": "http://github.com/awslabs/aws-lambda-redshift-loader",
66
"bugs": {
77
"url": "http://github.com/awslabs/aws-lambda-redshift-loader/issues",

0 commit comments

Comments
 (0)