Skip to content

Commit

Permalink
Review issue
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kec <[email protected]>
  • Loading branch information
danielkec committed Oct 2, 2024
1 parent 17975eb commit 54bdbbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lra/coordinator/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>io.helidon.lra</groupId>
<artifactId>helidon-lra-coordinator-project</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.2.0-SNAPSHOT</version>
</parent>

<artifactId>helidon-lra-coordinator-server</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion microprofile/lra/testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.helidon.microprofile.lra</groupId>
<artifactId>helidon-microprofile-lra-project</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public class TestLraCoordinator {
CoordinatorLocatorService coordinatorLocator) {
this.serverCdiExtension = serverCdiExtension;
this.coordinatorService = CoordinatorService.builder()
.url(this::getUrl)
.url(this::coordinatorUri)
.config(config.get(CoordinatorService.CONFIG_PREFIX))
.build();
coordinatorLocator.overrideCoordinatorUriSupplier(this::getUrl);
coordinatorLocator.overrideCoordinatorUriSupplier(this::coordinatorUri);
}

@Produces
Expand All @@ -78,7 +78,7 @@ HttpService coordinatorService() {
*
* @return coordinator url
*/
public URI getUrl() {
public URI coordinatorUri() {
return URI.create("http://localhost:" + awaitPort() + CONTEXT_PATH);
}

Expand All @@ -92,8 +92,8 @@ public Lra lra(String lraId) {
if (lraId == null) {
return null;
}
if (lraId.startsWith(getUrl() + "/")) {
return coordinatorService.lra(lraId.substring(getUrl().toString().length() + 1));
if (lraId.startsWith(coordinatorUri() + "/")) {
return coordinatorService.lra(lraId.substring(coordinatorUri().toString().length() + 1));
}
return coordinatorService.lra(lraId);
}
Expand Down

0 comments on commit 54bdbbf

Please sign in to comment.