format to be readable.
package com.quorum.tessera.p2p.resend;
-import com.quorum.tessera.p2p.resend.ResendClient;
-import com.quorum.tessera.p2p.resend.ResendRequest;
-
import javax.ws.rs.client.Client;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.MediaType;
@@ -21,7 +18,10 @@ public class RestResendClient implements ResendClient {
public boolean makeResendRequest(final String targetUrl, final ResendRequest request) {
final Entity<ResendRequest> outboundEntity = Entity.entity(request, MediaType.APPLICATION_JSON);
- try (Response response = client.target(targetUrl).path("/resend").request().post(outboundEntity)) {
+ try (Response response = client.target(targetUrl)
+ .path("/resend")
+ .request()
+ .post(outboundEntity)) {
return Response.Status.OK.getStatusCode() == response.getStatus();
}
}
