Skip to content

Commit dd275dc

Browse files
committed
fix
1 parent 8f6845d commit dd275dc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lazer/sdk/rust/client/examples/subscribe_price_feeds.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ async fn main() -> anyhow::Result<()> {
3434

3535
// Create and start the client
3636
let mut client = PythLazerClient::new(
37-
vec!["wss://pyth-lazer.dourolabs.app/v1/stream".to_string()],
37+
vec![
38+
"wss://pyth-lazer-0.dourolabs.app/v1/stream".to_string(),
39+
"wss://pyth-lazer-1.dourolabs.app/v1/stream".to_string(),
40+
],
3841
get_lazer_access_token(),
39-
2,
42+
4,
4043
ExponentialBackoffBuilder::default()
4144
.with_max_elapsed_time(None) // max_elapsed_time is not supported in Pyth Lazer client
4245
.build(),

lazer/sdk/rust/client/src/client.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use std::{
2-
hash::{DefaultHasher, Hash},
3-
time::Duration,
4-
};
1+
use std::time::Duration;
52

63
use crate::{
74
resilient_ws_connection::PythLazerResilientWSConnection, ws_connection::AnyResponse,

0 commit comments

Comments
 (0)