Skip to content

Commit a58dfdd

Browse files
style: fix formatting issues
Co-Authored-By: Tejas Badadare <[email protected]>
1 parent d317ff6 commit a58dfdd

File tree

4 files changed

+218
-74
lines changed

4 files changed

+218
-74
lines changed

lazer/Cargo.lock

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazer/sdk/rust/consumer/examples/basic.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use {
22
anyhow::Result,
3-
pyth_lazer_consumer::{Chain, DeliveryFormat, PriceFeedId, PriceFeedProperty, PythLazerConsumer, Response},
3+
pyth_lazer_consumer::{
4+
Chain, DeliveryFormat, PriceFeedId, PriceFeedProperty, PythLazerConsumer, Response,
5+
},
46
tokio,
57
};
68

@@ -31,7 +33,10 @@ async fn main() -> Result<()> {
3133
while let Ok(update) = rx.recv().await {
3234
match update {
3335
Response::StreamUpdated(update) => {
34-
println!("Received update for subscription {}", update.subscription_id.0);
36+
println!(
37+
"Received update for subscription {}",
38+
update.subscription_id.0
39+
);
3540
if let Some(parsed) = update.payload.parsed {
3641
for feed in parsed.price_feeds {
3742
println!(" Feed ID: {:?}", feed.price_feed_id);

0 commit comments

Comments
 (0)