Skip to content

Commit 6d2fa2c

Browse files
authored
Update index.js
Signed-off-by: Deepanshu Agarwal <[email protected]>
1 parent bb1b9ce commit 6d2fa2c

File tree

1 file changed

+4
-0
lines changed
  • configuration/javascript/sdk/order-processor

1 file changed

+4
-0
lines changed

configuration/javascript/sdk/order-processor/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ const daprPort = process.env.DAPR_GRPC_PORT ?? 3500;
88
const DAPR_CONFIGURATION_STORE = "configstore";
99
const CONFIGURATION_ITEMS = ["orderId1", "orderId2"];
1010

11+
async function sleep(ms) {
12+
return new Promise(resolve => setTimeout(resolve, ms));
13+
}
14+
1115
async function main() {
1216
const client = new DaprClient({daprHost, daprPort, communicationProtocol});
1317
// await client.health.isHealthy();

0 commit comments

Comments
 (0)