#2839·grpc-rust

tonic: `Reconnect::poll_ready` 在连接错误时返回 `Ok(())`, 导致塔机的 p2c `Balance` 切换失败

作者: hermeGarcia创建于 2026年8月27日更新于 2026年8月27日

// lines 36-47 pub(crate) struct Reconnect<M, Target> where M: Service, M::Error: Intocrate::BoxError, { mk_service: M, state: State<M::Future, M::Response>, target: Target, error: Optioncrate::BoxError, has_been_connected: bool, is_lazy: bool, } poll_ready has two places where it returns Ok(()) despite a connection error: