Skip to content

Commit 6f7214c

Browse files
committed
Fix 'waitFor' recursive calls in kinesis/dynamo-stream 🌊
Problem apparently introduced by CoorpAcademy#140 and reported in CoorpAcademy#145 Might be the cause of instabilities CI is facing currenly 🤞
1 parent d7d8e0d commit 6f7214c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/serverless-offline-dynamodb-streams/src/dynamodb-streams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class DynamodbStreams {
5858
})
5959
.promise();
6060
} catch (err) {
61-
return this._waitFor(tableName);
61+
return this._describeTable(tableName);
6262
}
6363
}
6464

packages/serverless-offline-kinesis/src/kinesis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Kinesis {
5353
})
5454
.promise();
5555
} catch (err) {
56-
return this._waitFor(streamName);
56+
return this._describeStream(streamName);
5757
}
5858
}
5959

0 commit comments

Comments
 (0)