Bumping versions

This commit is contained in:
buildmaster
2020-09-18 11:47:22 +00:00
parent 3126157493
commit 7f6ddf69c5
111 changed files with 1272 additions and 2007 deletions

View File

@@ -50,10 +50,8 @@ public class GreetingController {
* @return Greeting string.
*/
@GetMapping("/greeting")
public Mono<String> getGreeting(
@RequestParam(value = "delay", defaultValue = "0") int delay) {
return nameService.getName(delay)
.map(name -> String.format("Hello from %s!", name));
public Mono<String> getGreeting(@RequestParam(value = "delay", defaultValue = "0") int delay) {
return nameService.getName(delay).map(name -> String.format("Hello from %s!", name));
}
}

View File

@@ -37,8 +37,7 @@ public class NameService {
}
public Mono<String> getName(int delay) {
return webClient.get()
.uri(String.format("http://name-service/name?delay=%d", delay)).retrieve()
return webClient.get().uri(String.format("http://name-service/name?delay=%d", delay)).retrieve()
.bodyToMono(String.class);
}

View File

@@ -50,10 +50,8 @@ public class NameController {
* @return Host name.
*/
@GetMapping("/name")
public Mono<String> getName(
@RequestParam(value = "delay", defaultValue = "0") int delayValue) {
LOG.info(String.format("Returning a name '%s' with a delay '%d'", hostName,
delayValue));
public Mono<String> getName(@RequestParam(value = "delay", defaultValue = "0") int delayValue) {
LOG.info(String.format("Returning a name '%s' with a delay '%d'", hostName, delayValue));
delay(delayValue);
return Mono.just(hostName);
}