X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FfixedExample.js;h=2c36a7038695e4e4a8a10dae15bc0f748a4b3849;hb=710826bc287a006d90f9cdda42fdbac655757973;hp=07a57c3ef9c5fc9ff455586498294149bf14ebdb;hpb=292ad316a2815762f2e4a822383f1aef5ae49774;p=poolifier.git diff --git a/examples/fixedExample.js b/examples/fixedExample.js index 07a57c3e..2c36a703 100644 --- a/examples/fixedExample.js +++ b/examples/fixedExample.js @@ -10,7 +10,7 @@ const iterations = 1000 for (let i = 1; i <= iterations; i++) { pool .execute({}) - .then(res => { + .then(() => { resolved++ if (resolved === iterations) { return console.log('Time take is ' + (Date.now() - start))