Updating README.md

This commit is contained in:
Jay Ehsaniara
2021-06-30 18:20:46 -07:00
parent c3cbfbe4a6
commit fb429ddeb5
2 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 224 KiB

After

Width:  |  Height:  |  Size: 226 KiB

View File

@@ -75,6 +75,12 @@ public class OrderService implements OrderTopology {
setDefaultTopic(orderTopic);
sendDefault(order.getOrderUuid(), order);
}};
try {
//just a dummy delay
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
return order;
};
}
@@ -99,7 +105,7 @@ public class OrderService implements OrderTopology {
.peek((uuid, order) -> log.debug("Routing Order: {} [status: {}]", uuid, order.getOrderStatus()))
.map((uuid, order) -> {
try {
//create fake delay
//just a dummy delay
Thread.sleep(5_000);
} catch (InterruptedException e) {
e.printStackTrace();