fix: Actually implement the error conversion, oops

pull/24376/head
Carol (Nichols || Goulding) 2022-10-21 09:20:19 -04:00
parent ba25300b01
commit 699332fd6b
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 6 additions and 2 deletions

View File

@ -44,8 +44,12 @@ impl SkippedCompactionServiceImpl {
impl From<ListSkippedCompactionsError> for tonic::Status {
/// Logs and converts a result from the business logic into the appropriate tonic status
fn from(_err: ListSkippedCompactionsError) -> Self {
Self::unimplemented("Not yet implemented")
fn from(err: ListSkippedCompactionsError) -> Self {
use ListSkippedCompactionsError::*;
match err {
SkippedCompactionLookup(_) => Self::internal(err.to_string()),
}
}
}