diff --git a/README.md b/README.md index 4567bed..d557e5f 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ The second thing we have to do is add the spawn dependency to the project. com.github.eigr spawn-java-std-sdk - v1.2.2 + v1.2.3 ``` We're also going to configure a few things for our application build to work, including compiling the protobuf files. @@ -128,7 +128,7 @@ See below a full example of the pom.xml file: com.github.eigr spawn-java-std-sdk - v1.2.2 + v1.2.3 ch.qos.logback diff --git a/pom.xml b/pom.xml index fa2e6b4..8eceec3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.eigr.spawn spawn-java-std-sdk jar - 1.2.2 + 1.2.3 spawn-java-std-sdk http://maven.apache.org diff --git a/src/main/java/io/eigr/spawn/api/ActorRef.java b/src/main/java/io/eigr/spawn/api/ActorRef.java index 189bbb1..cd0d480 100644 --- a/src/main/java/io/eigr/spawn/api/ActorRef.java +++ b/src/main/java/io/eigr/spawn/api/ActorRef.java @@ -330,7 +330,6 @@ private void invoke Map metadata = new HashMap<>(); options.ifPresent(opts -> { - invocationRequestBuilder.setAsync(true); opts.getDelaySeconds().ifPresent(invocationRequestBuilder::setScheduledTo); // 'scheduledTo' override 'delay' if both is set. opts.getScheduledTo() @@ -344,6 +343,7 @@ private void invoke Any commandArg = Any.pack(argument); invocationRequestBuilder + .setAsync(true) .setSystem(ActorOuterClass.ActorSystem.newBuilder().setName(this.actorId.getSystem()).build()) .setActor(actorRef) .setActionName(cmd)