Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Rename `InvalidPacketLine` error variant
Alexis Sellier committed 2 years ago
commit b8c2f2a647274869ef51a6ea576e6de8b2e4523a
parent 366e61a0535b7ad71ec04487d0039a08a2e1f092
1 file changed +2 -2
modified radicle-node/src/worker.rs
@@ -66,7 +66,7 @@ pub enum UploadError {
    #[error("worker failed to connect to git daemon: {0}")]
    DaemonConnectionFailed(io::Error),
    #[error("error parsing git command packet-line: {0}")]
-
    InvalidPacketLine(io::Error),
+
    PacketLine(io::Error),
    #[error(transparent)]
    Io(#[from] io::Error),
}
@@ -308,7 +308,7 @@ impl Worker {
                return Ok(ControlFlow::Break(()));
            }
            Err(err) => {
-
                return Err(UploadError::InvalidPacketLine(err));
+
                return Err(UploadError::PacketLine(err));
            }
        };
        log::debug!(target: "worker", "Received Git request pktline for {rid}..");