From 326e7acd7a69a9286073a1a66fb7a007573c477a Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Sun, 28 Aug 2022 09:54:57 -0400 Subject: [PATCH] Fix flowFromSupplier sample in kotlin-dsl.adoc **Cherry-pick to 5.5.x** # Conflicts: # src/reference/asciidoc/kotlin-dsl.adoc --- src/reference/asciidoc/kotlin-dsl.adoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/reference/asciidoc/kotlin-dsl.adoc b/src/reference/asciidoc/kotlin-dsl.adoc index 12de6b96fd..d619d60725 100644 --- a/src/reference/asciidoc/kotlin-dsl.adoc +++ b/src/reference/asciidoc/kotlin-dsl.adoc @@ -49,7 +49,7 @@ This factory can be used in Kotlin as well: ---- @Bean fun flowFromSupplier() = - IntegrationFlows.from({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } } + IntegrationFlows.fromSupplier({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } } .channel { c -> c.queue("fromSupplierQueue") } .get() ---- @@ -94,4 +94,3 @@ fun convertFlow() = ==== NOTE: The reified type can be a whole `Message<*>` if there need access to headers as well in the lambda of the operator. -