micronaut-projects / micronaut-nats

Integration between Micronaut and Nats.io (https://nats.io/)
Apache License 2.0
14 stars 9 forks source link

Publisher<Void> return type on @NatsClient results in request-reply #470

Closed sixtam closed 4 months ago

sixtam commented 4 months ago

Expected Behavior

Specifying org.reactivestreams.Publisher as return type on a @NatsClient method should just send a message. (reactor.core.publisher.Mono does not work either)

Similar issue reported https://github.com/micronaut-projects/micronaut-nats/issues/260

Actual Behaviour

RPC call which timeouts

Steps To Reproduce

public interface EventPublisher {
    org.reactivestreams.Publisher<java.lang.Void> send( @Subject String subject, Object event);
}

Environment Information

JDK 21

Example Application

No response

Version

4.4.2