nats-io / nats.rs

Rust client for NATS, the cloud native messaging system.
Apache License 2.0
1.07k stars 169 forks source link

Remove unwrap from consumer #1305

Closed Jarema closed 2 months ago

Jarema commented 2 months ago

Although those unwraps seem safe, it's still better not not have app panicking at all. Even in case of those somehow failing, client will recover by itself on next iteration of the timer. If Stream is dropped, we also shutdown the task, so dropped sender/receiver should not matter.

Signed-off-by: Tomasz Pietrek tomasz@nats.io