Skip to content

Commit 48d76a2

Browse files
committed
Change wait time to 1 second for simulated ajax delay
1 parent b764ece commit 48d76a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ server.app.get('/comments.json', function(req, res) {
2424

2525
server.app.post('/comments.json', function(req, res) {
2626
console.log("Processing comment: %j", req.body.comment);
27-
console.log("(shhhh...napping 2 seconds)");
28-
sleep.sleep(2);
27+
console.log("(shhhh...napping 1 seconds)");
28+
sleep.sleep(1);
2929
console.log("Just got done with nap!");
3030
comments.push(req.body.comment);
3131
res.setHeader('Content-Type', 'application/json');

0 commit comments

Comments
 (0)