v0.3.11-pre.008-fix.001

This commit is contained in:
2026-09-08 12:51:16 +02:00
parent 22c88c449d
commit 63e1a866a3
3 changed files with 106 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-worker-raw-transaction-ingest-lib/src/runtime.rs
// version: 5
// version: 6
type PersistencePort = std::sync::Arc<dyn crate::RawTransactionIngestPersistencePort + 'static>;
type PersistenceTasks = tokio::task::JoinSet<ksp_core_lib::Result<crate::RawTransactionIngestPersistenceOutcome>>;
@@ -173,10 +173,10 @@ async fn drain_admission_and_persistence(
if !spawned && fault.is_none() {
fault = std::option::Option::Some(crate::ERROR_CODE_RAW_TRANSACTION_INGEST_RUNTIME_INVALID);
}
if let std::result::Result::Err(error) = published {
if fault.is_none() {
fault = std::option::Option::Some(error.code());
}
if let std::result::Result::Err(error) = published
&& fault.is_none()
{
fault = std::option::Option::Some(error.code());
}
},
std::result::Result::Ok(std::option::Option::None) => break,