Skip to content

Commit

Permalink
Issue ReactiveX#458: Fixed missing Context propagation in AbstractSub…
Browse files Browse the repository at this point in the history
…scriber.
  • Loading branch information
RobWin committed May 19, 2019
1 parent 8dfd276 commit ccf5d3d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.reactivestreams.Subscription;
import reactor.core.CoreSubscriber;
import reactor.core.publisher.BaseSubscriber;
import reactor.util.context.Context;

/**
* Heavily inspired by {@link reactor.core.publisher.BaseSubscriber}
Expand All @@ -42,6 +43,11 @@ protected void hookOnSubscribe(Subscription subscription){
downstreamSubscriber.onSubscribe(this);
}

@Override
public Context currentContext() {
return downstreamSubscriber.currentContext();
}

@Override
public String toString() {
return getClass().getSimpleName();
Expand Down

0 comments on commit ccf5d3d

Please sign in to comment.