-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Reactor 2020.0 #2588
Conversation
@@ -66,7 +66,7 @@ void bufferMultipleStrings() { | |||
"fourteen bytes" | |||
); | |||
|
|||
Flux<String> buffered = BufferingFlux.create(source, "\n", 27, Long.MAX_VALUE); | |||
Flux<String> buffered = BufferingFlux.create(source, "\n", 27, 1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -79,8 +80,7 @@ | |||
private final HierarchicalNameMapper nameMapper; | |||
private final Map<Meter.Id, StatsdPollable> pollableMeters = new ConcurrentHashMap<>(); | |||
private final AtomicBoolean started = new AtomicBoolean(); | |||
DirectProcessor<String> processor = DirectProcessor.create(); | |||
FluxSink<String> fluxSink = new NoopFluxSink(); | |||
Sinks.Many<String> sink = new NoopManySink(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I was working on this, I wished there was a built-in no-op implementation, but then I wondered if we really need one. If we don't subscribe, then it is almost a no-op. Maybe our NoopManySink
isn't really needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's explore this in a separate change.
Re-attempts #2359. This is using the
tryEmitNext
method instead ofemitNext
to avoid any failure handling - we want to drop elements on failure.This implementation hopefully obviates #2378.
Opened as a draft until we branch 1.7.x somain
is ready for 1.8 development.This will make the implementation of #792 straightforward since Reactor Netty added support for UDS in 1.0.0.