Skip to content

Commit 2bec117

Browse files
committed
Fix. Use correct port in url
1 parent 497ad76 commit 2bec117

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
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.5</version>
97+
<version>v1.2.6</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.5</version>
131+
<version>v1.2.6</version>
132132
</dependency>
133133
<dependency>
134134
<groupId>ch.qos.logback</groupId>

pom.xml

Lines changed: 1 addition & 1 deletion
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.5</version>
7+
<version>1.2.6</version>
88
<name>spawn-java-std-sdk</name>
99
<url>http://maven.apache.org</url>
1010

src/main/java/io/eigr/spawn/internal/transport/client/OkHttpSpawnClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public Protocol.RegistrationResponse register(Protocol.RegistrationRequest regis
5151

5252
Call call = client.newCall(request);
5353
try (Response response = call.execute()) {
54-
assert response.body() != null;
5554
log.debug("Decode response from {}", response.body().bytes());
5655
return Protocol.RegistrationResponse.parseFrom(
5756
Objects.requireNonNull(response.body()
@@ -133,7 +132,7 @@ private String makeURLForSystemAndActor(String systemName, String actorName) {
133132
}
134133

135134
private String makeURLFrom(String uri) {
136-
return String.format("http://%s:%S%s", this.opts.getProxyHost(), this.opts.getPort(), uri);
135+
return String.format("http://%s:%S%s", this.opts.getProxyHost(), this.opts.getProxyPort(), uri);
137136
}
138137

139138
private String makeSpawnURLFrom(String systemName) {

0 commit comments

Comments
 (0)