Skip to content

Commit

Permalink
Removed dedicated SSL cert provider in all IMS data binaries as tokio…
Browse files Browse the repository at this point in the history
… tungstenite apparently fixed issue:

  snapview/tokio-tungstenite#353

 Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>

Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
  • Loading branch information
marvin-hansen committed Jan 30, 2025
1 parent 2a3db13 commit 74bc7c8
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ build_binary_opt(
"//alias:common_exchange",
"//alias/service:ims_data_service",
# External crates
"//thirdparty/crates:rustls",
"//thirdparty/crates:tokio",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ binance_coin_futures_data_integration = { workspace = true }
common_exchange = {workspace = true}
ims_data_service = {workspace = true}
# External crates
rustls = { workspace = true }
tokio = { workspace = true }
5 changes: 0 additions & 5 deletions queng_system_ims_data/binance/binance_coin_future/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ const EXCHANGE_ID: ExchangeID = ExchangeID::BinanceCoinMarginFuture;

#[tokio::main]
async fn main() -> Result<(), Error> {
// https://github.com/snapview/tokio-tungstenite/issues/353
rustls::crypto::ring::default_provider()
.install_default()
.expect("Failed to install default rustls crypto provider");

ims_data_service::start(
DBG,
EXCHANGE_ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ build_binary_opt(
"//alias:common_exchange",
"//alias/service:ims_data_service",
# External crates
"//thirdparty/crates:rustls",
"//thirdparty/crates:tokio",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ binance_coin_futures_testnet_data_integration = { workspace = true }
common_exchange = {workspace = true}
ims_data_service = {workspace = true}
# External crates
rustls = { workspace = true }
tokio = { workspace = true }
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const EXCHANGE_ID: ExchangeID = ExchangeID::BinanceCoinMarginFutureTestnet;

#[tokio::main]
async fn main() -> Result<(), Error> {
// https://github.com/snapview/tokio-tungstenite/issues/353
rustls::crypto::ring::default_provider()
.install_default()
.expect("Failed to install default rustls crypto provider");

ims_data_service::start(
DBG,
Expand Down
1 change: 0 additions & 1 deletion queng_system_ims_data/binance/binance_spot/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ build_binary_opt(
"//alias:common_exchange",
"//alias/service:ims_data_service",
# External crates
"//thirdparty/crates:rustls",
"//thirdparty/crates:tokio",
],
)
Expand Down
1 change: 0 additions & 1 deletion queng_system_ims_data/binance/binance_spot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ binance_spot_data_integration = { workspace = true }
common_exchange = {workspace = true}
ims_data_service = {workspace = true}
# External crates
rustls = { workspace = true }
tokio = { workspace = true }
4 changes: 0 additions & 4 deletions queng_system_ims_data/binance/binance_spot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const EXCHANGE_ID: ExchangeID = ExchangeID::BinanceSpot;

#[tokio::main]
async fn main() -> Result<(), Error> {
// https://github.com/snapview/tokio-tungstenite/issues/353
rustls::crypto::ring::default_provider()
.install_default()
.expect("Failed to install default rustls crypto provider");

ims_data_service::start(DBG, EXCHANGE_ID, ImsBinanceSpotDataIntegration::new())
.await
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ build_binary_opt(
"//alias:common_exchange",
"//alias/service:ims_data_service",
# External crates
"//thirdparty/crates:rustls",
"//thirdparty/crates:tokio",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ binance_spot_testnet_data_integration = { workspace = true }
common_exchange = {workspace = true}
ims_data_service = {workspace = true}
# External crates
rustls = { workspace = true }
tokio = { workspace = true }
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const EXCHANGE_ID: ExchangeID = ExchangeID::BinanceSpotTestnet;

#[tokio::main]
async fn main() -> Result<(), Error> {
// https://github.com/snapview/tokio-tungstenite/issues/353
rustls::crypto::ring::default_provider()
.install_default()
.expect("Failed to install default rustls crypto provider");

ims_data_service::start(
DBG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ build_binary_opt(
"//alias:common_exchange",
"//alias/service:ims_data_service",
# External crates
"//thirdparty/crates:rustls",
"//thirdparty/crates:tokio",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ binance_usd_futures_data_integration = { workspace = true }
common_exchange = {workspace = true}
ims_data_service = {workspace = true}
# External crates
rustls = { workspace = true }
tokio = { workspace = true }
4 changes: 0 additions & 4 deletions queng_system_ims_data/binance/binance_usd_future/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const EXCHANGE_ID: ExchangeID = ExchangeID::BinanceUsdMarginFuture;

#[tokio::main]
async fn main() -> Result<(), Error> {
// https://github.com/snapview/tokio-tungstenite/issues/353
rustls::crypto::ring::default_provider()
.install_default()
.expect("Failed to install default rustls crypto provider");

ims_data_service::start(DBG, EXCHANGE_ID, ImsBinanceUsdFuturesDataIntegration::new())
.await
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ build_binary_opt(
"//alias:common_exchange",
"//alias/service:ims_data_service",
# External crates
"//thirdparty/crates:rustls",
"//thirdparty/crates:tokio",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const EXCHANGE_ID: ExchangeID = ExchangeID::BinanceUsdMarginFutureTestnet;

#[tokio::main]
async fn main() -> Result<(), Error> {
// https://github.com/snapview/tokio-tungstenite/issues/353
rustls::crypto::ring::default_provider()
.install_default()
.expect("Failed to install default rustls crypto provider");

ims_data_service::start(
DBG,
Expand Down

0 comments on commit 74bc7c8

Please sign in to comment.