Skip to content

Commit af4af83

Browse files
committed
chore: update README version to 0.2.0 and format example
1 parent 2bd13d5 commit af4af83

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Add to your `Cargo.toml`:
2020

2121
```toml
2222
[dependencies]
23-
kalshi-trade-rs = "0.1.0"
23+
kalshi-trade-rs = "0.2.0"
2424
```
2525

2626
Configure environment variables:

examples/stream_reconnect.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ async fn run_stream(config: &KalshiConfig) -> Result<String, Box<dyn std::error:
5959
match handle.update_receiver.recv().await {
6060
Ok(update) => match &update.msg {
6161
StreamMessage::Closed { reason } => return Ok(reason.to_string()),
62-
StreamMessage::ConnectionLost { reason, subscriptions } => {
62+
StreamMessage::ConnectionLost {
63+
reason,
64+
subscriptions,
65+
} => {
6366
eprintln!("Connection lost: {reason}");
6467
if !subscriptions.is_empty() {
6568
eprintln!("Lost subscriptions: {subscriptions:?}");

0 commit comments

Comments
 (0)