You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that this is only used to improve logs.
Not necessary for now but I'd suggest making this a general reason enum (you can use thiserror for the human readable text or impl Display)
#[derive(Debug, Clone, Copy, thiserror::Error)]
pub enum DisconnectReason {
#[error("Remote disconnected")]
RemoteDisconnected,
#[error("Connection was culled because it was inactive")]
ConnectionCulledInactive,
#[error("Connection was culled to reduce number of connections")]
ConnectionCulledMinimise
#[error("Local node explicit disconnect")]
LocalDisconnected
}
It appears that this is only used to improve logs.
Not necessary for now but I'd suggest making this a general reason enum (you can use thiserror for the human readable text or impl Display)
Originally posted by @sdbondi in #6307 (comment)
The text was updated successfully, but these errors were encountered: