From abac00b341936a511bd9bdf99236f5c554f5c61b 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** --- 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 7d69d1b689..f08881dbb5 100644 --- a/src/reference/asciidoc/kotlin-dsl.adoc +++ b/src/reference/asciidoc/kotlin-dsl.adoc @@ -49,7 +49,7 @@ This API can be used in Kotlin as well: ---- @Bean fun flowFromSupplier() = - IntegrationFlow.from({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } } + IntegrationFlow.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. -