diff --git a/service_invocation/javascript/http/checkout/index.js b/service_invocation/javascript/http/checkout/index.js index f12978477..d9721204c 100644 --- a/service_invocation/javascript/http/checkout/index.js +++ b/service_invocation/javascript/http/checkout/index.js @@ -12,13 +12,13 @@ async function main() { }; for(var i = 1; i <= 20; i++) { + await sleep(1000); + const order = {orderId: i}; // Invoking a service const res = await axios.post(`${DAPR_HOST}:${DAPR_HTTP_PORT}/orders`, order , axiosConfig); console.log("Order passed: " + res.config.data); - - await sleep(1000); } }