nats-io/nats.net.v2

API Prefix with Domain wrong?

Closed this issue · 0 comments

From docs

As a result of this the JetStream API $JS.API.> will also be available under a disambiguated name $JS.<domain>.API.>. Needless to say, domain names need to be unique.

But the code for prefix seems to indicate $JS.API.<domain> and not $JS.<domain>.API

https://github.com/nats-io/nats.net.v2/blob/b0b736d3c334bf3913d8fb188f8ea197ee19c353/src/NATS.Client.JetStream/NatsJSOpts.cs#L21C75-L21C84

Also... What if ApiPrefix and Domain are set? Shouldn't it be one or the other? Like if I set my prefix to JS.my-custom-prefix but Domain is also set to my-domain that seems like an error, since we would have no clue which one takes precedence