Skip to content

Commit ca79e13

Browse files
committed
||
- wakeup time is way too slow to do stuff in series, so we're going brutal...the API would take the hit
1 parent 1e2d170 commit ca79e13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/showtime.6.babel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ exports['default'] = function () {
147147
'Thursday': 250
148148
};
149149

150-
_async2['default'].forEachOfSeries(dayRunner, function (dayValue, dayKey, dayCallback) {
150+
_async2['default'].forEachOf(dayRunner, function (dayValue, dayKey, dayCallback) {
151151
// 5 movies / day in each cinema
152-
_async2['default'].eachSeries([0, 1, 2, 3, 4], function (movie, movieCallback) {
152+
_async2['default'].each([0, 1, 2, 3, 4], function (movie, movieCallback) {
153153
var cinema1Index = dayValue + movie * 6,
154154
cinema2Index = dayValue + movie * 6 + 2,
155155
cinema3Index = dayValue + movie * 6 + 4;

lib/showtime.6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ export default () => {
152152
'Thursday': 250
153153
};
154154

155-
async.forEachOfSeries(dayRunner, (dayValue, dayKey, dayCallback) => {
155+
async.forEachOf(dayRunner, (dayValue, dayKey, dayCallback) => {
156156
// 5 movies / day in each cinema
157-
async.eachSeries([0, 1, 2, 3, 4], (movie, movieCallback) => {
157+
async.each([0, 1, 2, 3, 4], (movie, movieCallback) => {
158158
let cinema1Index = dayValue + (movie * 6),
159159
cinema2Index = dayValue + (movie * 6) + 2,
160160
cinema3Index = dayValue + (movie * 6) + 4;

0 commit comments

Comments
 (0)