Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Sep 22, 2023
1 parent 532ee8a commit 6991832
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions consumer/src/solana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,14 @@ impl Solana {
anyhow!(msg)
})?;

let signature = (|| {
(|| {
let status = self
.rpc()
.get_signature_status(&signature)
.map_err(|e| e.kind)?;

match status {
Some(Ok(_)) => Ok(signature),
Some(Err(e)) => Err(ClientErrorKind::TransactionError(e)),
Some(result) => result.map_err(|e| ClientErrorKind::TransactionError(e)),
None => Err(TransactionError::BlockhashNotFound.into()),
}
})
Expand All @@ -299,9 +298,7 @@ impl Solana {
})
.call()?;

Ok(signature.to_string())


Ok(signature.to_string())
}
}

Expand Down

0 comments on commit 6991832

Please sign in to comment.