diff --git a/spring-cloud-tencent-examples/polaris-ratelimit-example/ratelimit-callee-service/src/main/java/com/tencent/cloud/ratelimit/example/service/callee/BusinessController.java b/spring-cloud-tencent-examples/polaris-ratelimit-example/ratelimit-callee-service/src/main/java/com/tencent/cloud/ratelimit/example/service/callee/BusinessController.java index 0880adaf1..902d6681f 100644 --- a/spring-cloud-tencent-examples/polaris-ratelimit-example/ratelimit-callee-service/src/main/java/com/tencent/cloud/ratelimit/example/service/callee/BusinessController.java +++ b/spring-cloud-tencent-examples/polaris-ratelimit-example/ratelimit-callee-service/src/main/java/com/tencent/cloud/ratelimit/example/service/callee/BusinessController.java @@ -96,7 +96,7 @@ public class BusinessController { .doOnSuccess(s -> builder.append(s + "\n")) .doOnError(e -> { if (e instanceof WebClientResponseException) { - if (((WebClientResponseException)e).getRawStatusCode() == 429) { + if (((WebClientResponseException) e).getRawStatusCode() == 429) { builder.append("TooManyRequests ").append(index.incrementAndGet() + "\n"); } } @@ -104,7 +104,7 @@ public class BusinessController { .onErrorReturn(""); monoList.add(response); } - for (Mono mono : monoList){ + for (Mono mono : monoList) { mono.toFuture().get(); } index.set(0); @@ -125,7 +125,7 @@ public class BusinessController { new Thread(() -> { try { HttpHeaders httpHeaders = new HttpHeaders(); - httpHeaders.add("xxx","xxx"); + httpHeaders.add("xxx", "xxx"); ResponseEntity entity = restTemplate.exchange( "http://" + appName + "/business/info?yyy={yyy}", HttpMethod.GET,