Skip to content

Commit

Permalink
[3.x] Replace deprecated Multi.from(Stream) on Multi.create(Stream) (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain1653 authored Feb 29, 2024
1 parent fb023c8 commit 3de3a80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2022 Oracle and/or its affiliates.
* Copyright (c) 2020, 2024 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -425,7 +425,7 @@ void kafkaHeaderTest() throws InterruptedException {
Messaging messaging = Messaging.builder()
.connector(kafkaConnector)
.publisher(toKafka,
Multi.from(IntStream.rangeClosed(1, 3).boxed())
Multi.create(IntStream.rangeClosed(1, 3).boxed())
.map(KafkaMessage::of)
.peek(msg -> msg.getHeaders()
.add("secret header",
Expand Down

0 comments on commit 3de3a80

Please sign in to comment.