Skip to content

Commit

Permalink
Fix. Use correct port in url
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Santos committed Nov 7, 2023
1 parent 497ad76 commit 2bec117
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The second thing we have to do is add the spawn dependency to the project.
<dependency>
<groupId>com.github.eigr</groupId>
<artifactId>spawn-java-std-sdk</artifactId>
<version>v1.2.5</version>
<version>v1.2.6</version>
</dependency>
```
We're also going to configure a few things for our application build to work, including compiling the protobuf files.
Expand Down Expand Up @@ -128,7 +128,7 @@ See below a full example of the pom.xml file:
<dependency>
<groupId>com.github.eigr</groupId>
<artifactId>spawn-java-std-sdk</artifactId>
<version>v1.2.5</version>
<version>v1.2.6</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>io.eigr.spawn</groupId>
<artifactId>spawn-java-std-sdk</artifactId>
<packaging>jar</packaging>
<version>1.2.5</version>
<version>1.2.6</version>
<name>spawn-java-std-sdk</name>
<url>http://maven.apache.org</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public Protocol.RegistrationResponse register(Protocol.RegistrationRequest regis

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

private String makeURLFrom(String uri) {
return String.format("http://%s:%S%s", this.opts.getProxyHost(), this.opts.getPort(), uri);
return String.format("http://%s:%S%s", this.opts.getProxyHost(), this.opts.getProxyPort(), uri);
}

private String makeSpawnURLFrom(String systemName) {
Expand Down

0 comments on commit 2bec117

Please sign in to comment.