Skip to content

Commit

Permalink
Only log for code unknown errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zmanian committed Aug 9, 2024
1 parent f58e461 commit 2caca64
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/proposals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,15 @@ async fn poll_approved_proposals(

break;
}
} else {
} else if err.code() == Code::Unknown {
error!("error querying proposal {}: {}", proposal_id, err);

continue;
} else {
return Err(proposal_processing_error(format!(
"error querying proposal {}: {}",
proposal_id, err
)));
}
}
};
Expand Down

0 comments on commit 2caca64

Please sign in to comment.