Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auction-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auction-server"
version = "0.30.0"
version = "0.30.1"
edition = "2021"
license-file = "license.txt"

Expand Down
8 changes: 4 additions & 4 deletions auction-server/src/kernel/pyth_lazer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl WsClient {
match response {
Ok(response) => response,
Err(err) => {
tracing::warn!(text = ?text, error = ?err, "Failed to parse lazer text message");
tracing::error!(text = ?text, error = ?err, "Failed to parse lazer text message");
continue;
},
}
Expand All @@ -193,7 +193,7 @@ impl WsClient {
match response {
Ok(response) => response,
Err(err) => {
tracing::warn!(binary = ?binary, error = ?err, "Failed to parse lazer binary message");
tracing::error!(binary = ?binary, error = ?err, "Failed to parse lazer binary message");
continue;
}
}
Expand All @@ -211,15 +211,15 @@ impl WsClient {
MessageType::Subscribed(_) => continue,
MessageType::StreamUpdated(update) => {
if let Err(err) = update_sender.send(update) {
tracing::warn!(error = ?err, "Failed to broadcast lazer update message");
tracing::error!(error = ?err, "Failed to broadcast lazer update message");
}
continue;
}
}
}
_ = connection_check.tick() => {
if latest_update.elapsed() > maximum_inactivity {
tracing::warn!("Lazer connection inactive for too long, closing connection");
tracing::error!("Lazer connection inactive for too long, closing connection");
break;
}
},
Expand Down
8 changes: 6 additions & 2 deletions auction-server/src/opportunity/service/get_token_mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use {
pubkey::Pubkey,
},
spl_token::state::Mint,
spl_token_2022::state::Mint as Mint2022,
spl_token_2022::{
extension::StateWithExtensionsOwned,
state::Mint as Mint2022,
},
};

pub struct GetTokenMintInput {
Expand Down Expand Up @@ -57,7 +60,7 @@ impl Service {
})?
.decimals
} else {
Mint2022::unpack(&account.data)
StateWithExtensionsOwned::<Mint2022>::unpack(account.data)
.map_err(|err| {
tracing::error!(
mint = ?input.mint,
Expand All @@ -66,6 +69,7 @@ impl Service {
);
RestError::TemporarilyUnavailable
})?
.base
.decimals
};
let token_mint = entities::TokenMint {
Expand Down
Loading