Skip to content

Commit

Permalink
refactor(improved error handling): bubble up rather than log
Browse files Browse the repository at this point in the history
  • Loading branch information
cong-or committed Jan 13, 2025
1 parent 0a2286d commit 1b6f0f6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions catalyst-gateway/bin/src/service/api/cardano/cip36/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,9 @@ fn cross_reference_key(
async fn get_all_registrations_from_stake_pub_key(
session: &Arc<CassandraSession>, stake_pub_key: Ed25519HexEncodedPublicKey,
) -> Result<Vec<Cip36Details>, anyhow::Error> {
let mut registrations_iter = GetRegistrationQuery::execute(
session,
GetRegistrationParams {
stake_address: stake_pub_key.try_into()?,
},
)
let mut registrations_iter = GetRegistrationQuery::execute(session, GetRegistrationParams {
stake_address: stake_pub_key.try_into()?,
})
.await?;
let mut registrations = Vec::new();
while let Some(row) = registrations_iter.next().await {
Expand Down

0 comments on commit 1b6f0f6

Please sign in to comment.