Skip to content

Commit abac00b

Browse files
committed
Fix flowFromSupplier sample in kotlin-dsl.adoc
**Cherry-pick to 5.5.x**
1 parent ca138c0 commit abac00b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/reference/asciidoc/kotlin-dsl.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This API can be used in Kotlin as well:
4949
----
5050
@Bean
5151
fun flowFromSupplier() =
52-
IntegrationFlow.from<String>({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } }
52+
IntegrationFlow.fromSupplier({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } }
5353
.channel { c -> c.queue("fromSupplierQueue") }
5454
.get()
5555
----
@@ -94,4 +94,3 @@ fun convertFlow() =
9494
====
9595

9696
NOTE: The reified type can be a whole `Message<*>` if there need access to headers as well in the lambda of the operator.
97-

0 commit comments

Comments
 (0)