Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit d4159fb

Browse files
moved from modifified RestService to proxy to get get requests working for tracing
1 parent f77a3c7 commit d4159fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/works/weave/socks/orders/services/AsyncGetService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public <T> Future<Resource<T>> getResource(URI url, TypeReferences.ResourceType<
5656
InterruptedException, IOException {
5757
RequestEntity<Void> request = RequestEntity.get(url).accept(HAL_JSON).build();
5858
LOG.debug("Requesting: " + request.toString());
59-
Resource<T> body = halTemplate.exchange(request, type).getBody();
59+
Resource<T> body = restProxyTemplate.getRestTemplate().exchange(request, type).getBody();
6060
LOG.debug("Received: " + body.toString());
6161
return new AsyncResult<>(body);
6262
}

0 commit comments

Comments
 (0)