mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
node: Rename InvalidPacketLine error variant
In case of timeout on reading the packet-line, we would get this error. It would be confusing, as the packet-line wasn't invalid, just never received.
This commit is contained in:
@@ -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}..");
|
||||
|
||||
Reference in New Issue
Block a user