From 2bec1174b1b102ca9346d2d26ef5125ae1754dbf Mon Sep 17 00:00:00 2001 From: Adriano Santos Date: Tue, 7 Nov 2023 17:37:22 -0300 Subject: [PATCH] Fix. Use correct port in url --- README.md | 4 ++-- pom.xml | 2 +- .../spawn/internal/transport/client/OkHttpSpawnClient.java | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9e5347a..689ca3c 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.5 + v1.2.6 ``` 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.5 + v1.2.6 ch.qos.logback diff --git a/pom.xml b/pom.xml index 9170112..c36b428 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.eigr.spawn spawn-java-std-sdk jar - 1.2.5 + 1.2.6 spawn-java-std-sdk http://maven.apache.org diff --git a/src/main/java/io/eigr/spawn/internal/transport/client/OkHttpSpawnClient.java b/src/main/java/io/eigr/spawn/internal/transport/client/OkHttpSpawnClient.java index 3c7947e..b987faa 100644 --- a/src/main/java/io/eigr/spawn/internal/transport/client/OkHttpSpawnClient.java +++ b/src/main/java/io/eigr/spawn/internal/transport/client/OkHttpSpawnClient.java @@ -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() @@ -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) {