Use Overflow.BUFFER for PollableChPublisherAdapter
The `ReactiveStreamsConsumerTests.testReactiveStreamsConsumerPollableChannel()` fails periodically. Change the logic to rely on the `FluxSink.OverflowStrategy.BUFFER` for possible future subscribers, meanwhile with `IGNORE` we just lose a message altogether
This commit is contained in:
@@ -93,8 +93,7 @@ public final class MessageChannelReactiveUtils {
|
||||
&& (m = this.channel.receive()) != null) { // NOSONAR
|
||||
sink.next((Message<T>) m);
|
||||
}
|
||||
}),
|
||||
FluxSink.OverflowStrategy.IGNORE)
|
||||
}))
|
||||
.subscribeOn(Schedulers.elastic())
|
||||
.subscribe(subscriber);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user