diff options
author | 2024-04-05 16:29:01 +0200 | |
---|---|---|
committer | 2024-04-05 16:29:01 +0200 | |
commit | 1d74478512faafdb2263b0d11773190c9efe3190 (patch) | |
tree | 88e1716350a01d1cad03637828e82bc23fe829be /src/main.rs | |
parent | 0a1fa8873aa430f13735772cd0e8bff7c7ffc16c (diff) |
⬆️ (Cargo.toml): bump version to 0.1.2 for new release
♻️ (connection_details.rs): refactor `new` method to return Result for better error handling
✨ (connection_details.rs): set default adapter set to "DEFAULT" if none provided
✨ (ls_client.rs): update `new` method to handle Result from ConnectionDetails::new
🐛 (main.rs): fix subscription item list to include correct items
♻️ (main.rs): replace magic number with constant for max connection attempts
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 87fd834..67276a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,7 +67,7 @@ async fn main() -> Result<(), Box<dyn Error>> { let mut my_subscription = Subscription::new( SubscriptionMode::Merge, Some(vec![ - "item1".to_string(), + "item2".to_string(), "item2".to_string(), "item3".to_string(), ]), @@ -124,7 +124,7 @@ async fn main() -> Result<(), Box<dyn Error>> { } } - if retry_counter == 5 { + if retry_counter == MAX_CONNECTION_ATTEMPTS { println!("Failed to connect after {} retries. Exiting...", retry_counter); } else { println!("Exiting orderly from Lightstreamer client..."); |