Skip to content

Commit e455a1c

Browse files
committed
Fix. Ever set async when use invokeAsync method
1 parent f216d49 commit e455a1c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The second thing we have to do is add the spawn dependency to the project.
9494
<dependency>
9595
<groupId>com.github.eigr</groupId>
9696
<artifactId>spawn-java-std-sdk</artifactId>
97-
<version>v1.2.2</version>
97+
<version>v1.2.3</version>
9898
</dependency>
9999
```
100100
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:
128128
<dependency>
129129
<groupId>com.github.eigr</groupId>
130130
<artifactId>spawn-java-std-sdk</artifactId>
131-
<version>v1.2.2</version>
131+
<version>v1.2.3</version>
132132
</dependency>
133133
<dependency>
134134
<groupId>ch.qos.logback</groupId>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>io.eigr.spawn</groupId>
55
<artifactId>spawn-java-std-sdk</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.2.2</version>
7+
<version>1.2.3</version>
88
<name>spawn-java-std-sdk</name>
99
<url>http://maven.apache.org</url>
1010

src/main/java/io/eigr/spawn/api/ActorRef.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ private <T extends GeneratedMessageV3, S extends GeneratedMessageV3> void invoke
330330

331331
Map<String, String> metadata = new HashMap<>();
332332
options.ifPresent(opts -> {
333-
invocationRequestBuilder.setAsync(true);
334333
opts.getDelaySeconds().ifPresent(invocationRequestBuilder::setScheduledTo);
335334
// 'scheduledTo' override 'delay' if both is set.
336335
opts.getScheduledTo()
@@ -344,6 +343,7 @@ private <T extends GeneratedMessageV3, S extends GeneratedMessageV3> void invoke
344343
Any commandArg = Any.pack(argument);
345344

346345
invocationRequestBuilder
346+
.setAsync(true)
347347
.setSystem(ActorOuterClass.ActorSystem.newBuilder().setName(this.actorId.getSystem()).build())
348348
.setActor(actorRef)
349349
.setActionName(cmd)

0 commit comments

Comments
 (0)