0.3.15-pre.015-fix.001

This commit is contained in:
2026-09-18 23:33:08 +02:00
parent 582a286baa
commit b1b0e91616
7 changed files with 173 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-onchain-transport-lib/src/grpc_stream.rs
// version: 6
// version: 7
use tonic_prost::prost::Message; // rust-rules: trait-import
@@ -1012,16 +1012,16 @@ async fn finish_client_half_close(
},
std::result::Result::Ok(std::result::Result::Err(status)) => {
let code = status.code().to_string();
ksp_logging_lib::warn!(
ksp_logging_lib::debug!(
target: crate::TRACING_TARGET,
endpoint_name,
provider = provider.as_str(),
cluster = cluster.as_str(),
grpc_code = code.as_str(),
"Yellowstone subscribe endpoint returned a status during graceful shutdown"
"Yellowstone subscribe endpoint returned a status after local graceful shutdown request; treating session as closed"
);
snapshot.state = crate::YellowstoneGrpcSubscribeState::Failed;
snapshot.terminal_error_code = std::option::Option::Some(crate::ERROR_CODE_GRPC_STATUS);
snapshot.state = crate::YellowstoneGrpcSubscribeState::Closed;
snapshot.terminal_error_code = std::option::Option::None;
snapshot_tx.send_replace(*snapshot);
return;
},