mirror of https://github.com/dapr/java-sdk.git
Fixing small issue with sleep time in Actor example. (#187)
This commit is contained in:
parent
c487294143
commit
187a22725c
|
@ -72,7 +72,7 @@ public class DemoActorClient {
|
|||
|
||||
try {
|
||||
// Waits for up to 1 second.
|
||||
Thread.sleep((long) Math.rint(1000));
|
||||
Thread.sleep((long) (1000 * Math.random()));
|
||||
} catch (InterruptedException e) {
|
||||
// We have been interrupted, so we set the interrupted flag to exit gracefully.
|
||||
Thread.currentThread().interrupt();
|
||||
|
|
|
@ -148,7 +148,7 @@ public class DemoActorClient {
|
|||
|
||||
try {
|
||||
// Waits for up to 1 second.
|
||||
Thread.sleep((long) Math.rint(1000));
|
||||
Thread.sleep((long) (1000 * Math.random()));
|
||||
} catch (InterruptedException e) {
|
||||
// We have been interrupted, so we set the interrupted flag to exit gracefully.
|
||||
Thread.currentThread().interrupt();
|
||||
|
|
Loading…
Reference in New Issue