Skip to content

Commit

Permalink
remove ALREADY_PRESENT as it should not be returned
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilyjjo committed Oct 8, 2024
1 parent d5e0ff8 commit bb404a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/astria-composer/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,6 @@ impl Future for SubmitFut {
// FIXME (https://github.com/astriaorg/astria/issues/1572): This function is too long and should be refactored.
fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> {
const INVALID_NONCE: Code = Code::Err(AbciErrorCode::INVALID_NONCE.value());
const ALREADY_PRESENT: Code = Code::Err(AbciErrorCode::ALREADY_PRESENT.value());
const NONCE_TAKEN: Code = Code::Err(AbciErrorCode::NONCE_TAKEN.value());

loop {
Expand All @@ -697,7 +696,7 @@ impl Future for SubmitFut {
fut,
} => match ready!(fut.poll(cx)) {
Ok(rsp) => match rsp.code {
tendermint::abci::Code::Ok | ALREADY_PRESENT => {
tendermint::abci::Code::Ok => {
info!("sequencer responded with ok; submission successful");

this.metrics
Expand Down

0 comments on commit bb404a5

Please sign in to comment.