X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FdynamicExample.js;h=ed1bddebe0e17914992b26d982e477bf95e8e7bc;hb=e4796ecdf22d518a4d317d9137fbf2c5440c473d;hp=94c665a6ae88ee55e15575ff72fbcfd176751842;hpb=292ad316a2815762f2e4a822383f1aef5ae49774;p=poolifier.git diff --git a/examples/dynamicExample.js b/examples/dynamicExample.js index 94c665a6..ed1bddeb 100644 --- a/examples/dynamicExample.js +++ b/examples/dynamicExample.js @@ -12,7 +12,7 @@ const iterations = 1000 for (let i = 1; i <= iterations; i++) { pool .execute({}) - .then(res => { + .then(() => { resolved++ if (resolved === iterations) { console.log('Time take is ' + (Date.now() - start))