mnetship / ratsio

NATS & NATS Streaming Server client library for Rust
MIT License
50 stars 22 forks source link

StanSubscribe.ack_wait_in_secs defaults to 1_800_000 seconds #15

Open ufoscout opened 4 years ago

ufoscout commented 4 years ago

Hi,

in version 0.3.0-alpha.1, the default StanSubscribe code is:

impl Default for StanSubscribe {
    fn default() -> Self {
        StanSubscribe {
           ...
            ack_wait_in_secs: DEFAULT_ACK_WAIT,  
            ...
        }
    }
}

but DEFAULT_ACK_WAIT is defined as:

const DEFAULT_ACK_WAIT: i32 = 30 * 60000;

so the default ack_wait_in_secs is set to nearly 3 weeks :)