aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Daniel López Azaña <daniloaz@gmail.com>2024-04-07 21:14:31 +0200
committerLibravatar Daniel López Azaña <daniloaz@gmail.com>2024-04-07 21:14:31 +0200
commit7d7f380e3075be51198f0ad457cc766f0641d984 (patch)
tree8e88175cd34b594a338ad6b556e8c024a95eccca /src/main.rs
parent2a68c66704798bf956ac132ab8309212af7fd1c4 (diff)
⬆️ (Cargo.toml): bump version from 0.1.6 to 0.1.7 for new release
♻️ (various): refactor code to use underscore prefix for unused variables ✨ (ls_client.rs): add constants for WebSocket connection setup ✨ (various): add unimplemented!() stubs for methods to be implemented 🔥 (main.rs): remove unused imports and commented code 🔥 (ls_client.rs): remove unused HashMap import and commented code 🐛 (subscription.rs): fix get_command_value to correctly format key before lookup 🔧 (Cargo.toml): remove hyper dependency as it's no longer used
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs
index 901dd22..fbb50ba 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,20 +1,13 @@
-use hyper::client;
use lightstreamer_client::item_update::ItemUpdate;
use lightstreamer_client::ls_client::{LightstreamerClient, Transport};
use lightstreamer_client::subscription::{Snapshot, Subscription, SubscriptionMode};
use lightstreamer_client::subscription_listener::SubscriptionListener;
-use futures::stream::StreamExt;
-use futures::SinkExt;
-use reqwest::Client;
-use serde_urlencoded;
use signal_hook::low_level::signal_name;
use signal_hook::{consts::SIGINT, consts::SIGTERM, iterator::Signals};
use std::error::Error;
-use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use tokio::sync::{Notify, Mutex};
-use tokio_tungstenite::{connect_async, tungstenite::protocol::Message};
const MAX_CONNECTION_ATTEMPTS: u64 = 1;