Skip to main content

blocking_join_error

Function blocking_join_error 

Source
pub fn blocking_join_error(worker: &str, join: impl Display) -> Status
Expand description

Map a spawn_blocking join failure (handler panic or runtime shutdown) to a tonic::Status.

Storage and registry handlers run their synchronous RocksDB walks on the blocking pool so one long scan never pins an async runtime worker; a failed join means that task panicked or the runtime is shutting down. worker names the failing role for the message ("storage" / "registry"). join is the tokio::task::JoinError (taken by Display so this crate needs no tokio dependency). tonic::Status is the error type both deployments share: the gRPC status in the cluster, the client-trait error in-process.