From 59d03ff8631627fb06a95c6acc6f6db5e0a0445f Mon Sep 17 00:00:00 2001 From: Muyao Feng Date: Thu, 24 Mar 2022 15:31:49 +0800 Subject: [PATCH] change comments --- .../main/asciidoc/spring-cloud-stream-support.adoc | 14 +++++++------- .../main/asciidoc/spring-integration-support.adoc | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-stream-support.adoc b/docs/src/main/asciidoc/spring-cloud-stream-support.adoc index 023239b2..e76e3fc6 100644 --- a/docs/src/main/asciidoc/spring-cloud-stream-support.adoc +++ b/docs/src/main/asciidoc/spring-cloud-stream-support.adoc @@ -363,7 +363,7 @@ public Consumer> consume() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } @@ -456,7 +456,7 @@ public Consumer>> consume() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } @@ -612,7 +612,7 @@ public Consumer> consume1() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message1 '{}' successfully checkpointed", message)) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } @@ -624,7 +624,7 @@ public Consumer> consume2() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message2 '{}' successfully checkpointed", message)) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } ---- @@ -920,7 +920,7 @@ public Consumer> consume() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } @@ -1112,7 +1112,7 @@ public Consumer> consume1() { checkpointer.success() .doOnSuccess(s -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(e -> LOGGER.error("Error found", e)) - .subscribe(); + .block(); }; } @@ -1124,7 +1124,7 @@ public Consumer> consume2() { checkpointer.success() .doOnSuccess(s -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(e -> LOGGER.error("Error found", e)) - .subscribe(); + .block(); }; } diff --git a/docs/src/main/asciidoc/spring-integration-support.adoc b/docs/src/main/asciidoc/spring-integration-support.adoc index 6c53be00..6e249c21 100644 --- a/docs/src/main/asciidoc/spring-integration-support.adoc +++ b/docs/src/main/asciidoc/spring-integration-support.adoc @@ -287,7 +287,7 @@ class Demo { checkpointer.success() .doOnSuccess(s -> LOGGER.info("Message '{}' successfully checkpointed", message)) .doOnError(e -> LOGGER.error("Error found", e)) - .subscribe(); + .block(); } } ---- @@ -634,7 +634,7 @@ class Demo { checkpointer.success() .doOnSuccess(s -> LOGGER.info("Message '{}' successfully checkpointed", message)) .doOnError(e -> LOGGER.error("Error found", e)) - .subscribe(); + .block(); } } ---- @@ -960,7 +960,7 @@ class Demo { checkpointer.success() .doOnError(Throwable::printStackTrace) .doOnSuccess(t -> LOGGER.info("Message '{}' successfully checkpointed", message)) - .subscribe(); + .block(); } } ----