diff --git a/nats/src/lib.rs b/nats/src/lib.rs index 16657618a..fcadcb449 100644 --- a/nats/src/lib.rs +++ b/nats/src/lib.rs @@ -665,7 +665,7 @@ impl Connection { /// ``` /// # fn main() -> std::io::Result<()> { /// # let nc = nats::connect("demo.nats.io")?; - /// nc.flush()?; + /// nc.flush_timeout(Duration::from_secs(5))?; /// # Ok(()) /// # } /// ```