Skip to content

Commit

Permalink
Fix flowFromSupplier sample in kotlin-dsl.adoc
Browse files Browse the repository at this point in the history
**Cherry-pick to 5.5.x**
  • Loading branch information
artembilan committed Aug 28, 2022
1 parent ca138c0 commit abac00b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/reference/asciidoc/kotlin-dsl.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ This API can be used in Kotlin as well:
----
@Bean
fun flowFromSupplier() =
IntegrationFlow.from<String>({ "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()
----
Expand Down Expand Up @@ -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.

0 comments on commit abac00b

Please sign in to comment.