Closed nazar-pc closed 1 week ago
ConnectOptions::subscription_capacity documentation says "Default is set to 1024 messages buffer": https://github.com/nats-io/nats.rs/blob/f86dce921fad45ece9f06e9ddbf72a6ef085125a/async-nats/src/options.rs#L607-L625
ConnectOptions::subscription_capacity
However, the actual implementation is 1024*64 for some reason: https://github.com/nats-io/nats.rs/blob/f86dce921fad45ece9f06e9ddbf72a6ef085125a/async-nats/src/options.rs#L107
1024*64
Documentation and implementation must match
async-nats 0.35.1
No response
The capacity is bigger as that yields quite substantial boost in performance. 'are you interested in contributing the fix to the docs?
Observed behavior
ConnectOptions::subscription_capacity
documentation says "Default is set to 1024 messages buffer": https://github.com/nats-io/nats.rs/blob/f86dce921fad45ece9f06e9ddbf72a6ef085125a/async-nats/src/options.rs#L607-L625However, the actual implementation is
1024*64
for some reason: https://github.com/nats-io/nats.rs/blob/f86dce921fad45ece9f06e9ddbf72a6ef085125a/async-nats/src/options.rs#L107Expected behavior
Documentation and implementation must match
Server and client version
async-nats 0.35.1
Host environment
No response
Steps to reproduce
No response