Update error enum name

This commit is contained in:
Jon Häggblad
2023-09-01 15:58:51 +02:00
parent 00501f7073
commit c7d99bb951
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -87,9 +87,7 @@ pub enum BackendError {
#[error("no gateways found with compatible version: {0}")]
NoVersionCompatibleGatewaysFound(String),
#[error("no gateways found with acceptable performance")]
NoGatewayWithAcceptablePerformanceFound,
#[error("no gateways found with acceptable performance when measuring latency")]
NoGatewayWithAcceptablePerformanceFoundToQuery,
NoGatewaysWithAcceptablePerformanceFound,
#[error("no network-requesters found in directory")]
NoServicesFoundInDirectory,
@@ -74,7 +74,7 @@ fn filter_out_low_performance_gateways(
if filtered_gateways.is_empty() {
log::error!("No gateways found! (with high enough performance score)");
Err(BackendError::NoGatewayWithAcceptablePerformanceFound)
Err(BackendError::NoGatewaysWithAcceptablePerformanceFound)
} else {
Ok(filtered_gateways)
}