fix compile err

pull/902/head
seanyu 3 years ago
parent f3dccdf61f
commit ede2b56dc7

@ -96,7 +96,7 @@ public class BusinessController {
.doOnSuccess(s -> builder.append(s + "\n")) .doOnSuccess(s -> builder.append(s + "\n"))
.doOnError(e -> { .doOnError(e -> {
if (e instanceof WebClientResponseException) { if (e instanceof WebClientResponseException) {
if (((WebClientResponseException)e).getRawStatusCode() == 429) { if (((WebClientResponseException) e).getRawStatusCode() == 429) {
builder.append("TooManyRequests ").append(index.incrementAndGet() + "\n"); builder.append("TooManyRequests ").append(index.incrementAndGet() + "\n");
} }
} }
@ -104,7 +104,7 @@ public class BusinessController {
.onErrorReturn(""); .onErrorReturn("");
monoList.add(response); monoList.add(response);
} }
for (Mono<String> mono : monoList){ for (Mono<String> mono : monoList) {
mono.toFuture().get(); mono.toFuture().get();
} }
index.set(0); index.set(0);
@ -125,7 +125,7 @@ public class BusinessController {
new Thread(() -> { new Thread(() -> {
try { try {
HttpHeaders httpHeaders = new HttpHeaders(); HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.add("xxx","xxx"); httpHeaders.add("xxx", "xxx");
ResponseEntity<String> entity = restTemplate.exchange( ResponseEntity<String> entity = restTemplate.exchange(
"http://" + appName + "/business/info?yyy={yyy}", "http://" + appName + "/business/info?yyy={yyy}",
HttpMethod.GET, HttpMethod.GET,

Loading…
Cancel
Save