Skip to content

Commit 3f6bc58

Browse files
committed
editoast: stop lying
Signed-off-by: Younes Khoudli <[email protected]>
1 parent a0a9223 commit 3f6bc58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

editoast/core_client/src/mq_client.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ pub enum MqClientError {
180180
Serialization(#[educe(PartialEq(ignore))] serde_json::Error),
181181
#[error("Cannot parse response status")]
182182
StatusParsing,
183+
#[error("Response channel was closed due to a delivery error")]
184+
ResponseChannelClosed,
183185
#[error("Response timeout")]
184186
ResponseTimeout,
185187
#[error("Connection does not exist")]
@@ -475,7 +477,8 @@ impl RabbitMQClient {
475477
status,
476478
})
477479
}
478-
Ok(Err(_)) | Err(_) => Err(MqClientError::ResponseTimeout),
480+
Ok(Err(_)) => Err(MqClientError::ResponseChannelClosed),
481+
Err(_) => Err(MqClientError::ResponseTimeout),
479482
}
480483
}
481484
}

0 commit comments

Comments
 (0)