use lampada::error::ConnectionError; use crate::files::FileStore; use super::ClientLogic; pub async fn handle_connection_error( logic: ClientLogic, error: ConnectionError, ) { logic.handle_error(error.into()).await; }