Skip to content

Commit

Permalink
ContextPropagationUniInterceptor fix to UniSubscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
jponge committed Dec 7, 2020
1 parent 9985faf commit cd7f54c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.infrastructure.UniInterceptor;
import io.smallrye.mutiny.operators.AbstractUni;
import io.smallrye.mutiny.operators.UniSerializedSubscriber;
import io.smallrye.mutiny.subscription.UniSubscriber;
import io.smallrye.mutiny.subscription.UniSubscription;

Expand Down Expand Up @@ -44,7 +43,7 @@ public <T> Uni<T> onUniCreation(Uni<T> uni) {
Executor executor = getThreadContext().currentContextExecutor();
return new AbstractUni<T>() {
@Override
protected void subscribing(UniSerializedSubscriber<? super T> subscriber) {
protected void subscribing(UniSubscriber<? super T> subscriber) {
executor.execute(() -> AbstractUni.subscribe(uni, subscriber));
}
};
Expand Down

0 comments on commit cd7f54c

Please sign in to comment.