diff --git a/examples/search/index.js b/examples/search/index.js index db533eab46..ee11747637 100644 --- a/examples/search/index.js +++ b/examples/search/index.js @@ -29,7 +29,7 @@ app.use(express.static(path.join(__dirname, 'public'))); async function initializeRedis() { try { // connect to Redis - + await db.connect(); // populate search @@ -77,8 +77,7 @@ app.get('/client.js', function(req, res){ (async () => { await initializeRedis(); if (!module.parent) { - app.listen(3000, () => { - console.log('Express started on port 3000'); - }); + app.listen(3000); + console.log('Express started on port 3000'); } })(); \ No newline at end of file