Prepare for a future change to downstream() inner method in reactor-core

This commit is contained in:
Stephane Maldini
2015-12-08 13:21:35 +00:00
parent 45706422dd
commit 4616938525

View File

@@ -112,7 +112,7 @@ public class JsonObjectEncoder extends AbstractEncoder<ByteBuffer> {
buffer.flip();
BackpressureUtils.getAndSub(REQUESTED, this, 1L);
downstream().onNext(buffer.byteBuffer());
subscriber.onNext(buffer.byteBuffer());
}
protected void drainLast(){
@@ -123,7 +123,7 @@ public class JsonObjectEncoder extends AbstractEncoder<ByteBuffer> {
buffer.append("]");
}
buffer.flip();
downstream().onNext(buffer.byteBuffer());
subscriber.onNext(buffer.byteBuffer());
super.doComplete();
}
}