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 1b6f0f6 commit 80eb55e
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ impl GetAllStakesAndVoteKeysQuery {
)
.await;

if let Err(ref error) = get_all_stake_and_vote_keys {
error!(error=%error, "Failed to prepare get all (stake addrs, vote_keys)");
};

get_all_stake_and_vote_keys
get_all_stake_and_vote_keys.inspect_err(
|error| error!(error=%error, "Failed to prepare get all (stake addrs, vote_keys)"),
)
}

/// Executes get all `stake_addr` paired with vote keys [(`stake_addr,vote_key`)]
Expand Down

0 comments on commit 80eb55e

Please sign in to comment.