Skip to content

Commit fb2b898

Browse files
committed
chore: testing
1 parent b3cb8b9 commit fb2b898

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main/java/spp/demo/command/ViewTraces.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ public class ViewTraces {
2828
*/
2929
@Get("/view-traces")
3030
public HttpResponse<Void> entryEndpoint() throws Exception {
31-
// try (HttpClient client = HttpClient.create(new URL("http://localhost:8080"))) {
32-
// client.toBlocking().retrieve("/command/view-traces/exit");
33-
// }
34-
return HttpResponse.ok();
31+
try (HttpClient client = HttpClient.create(new URL("http://localhost:8080"))) {
32+
return client.toBlocking().exchange("/command/view-traces/exit");
33+
} catch (Exception e) {
34+
return HttpResponse.serverError();
35+
}
3536
}
3637

3738
@Get("/view-traces/exit")
38-
public HttpResponse<String> exitEndpoint() {
39-
return HttpResponse.ok("Success");
39+
public HttpResponse<Void> exitEndpoint() {
40+
return HttpResponse.ok();
4041
}
4142
}

0 commit comments

Comments
 (0)