We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1b4b24 commit 13e3779Copy full SHA for 13e3779
1 file changed
core/src/flight/exec.rs
@@ -196,7 +196,7 @@ async fn flight_stream(
196
Err(e) => errors.push(Box::new(e)),
197
}
198
199
- let err = errors.into_iter().last().unwrap_or_else(|| {
+ let err = errors.into_iter().next_back().unwrap_or_else(|| {
200
Box::new(FlightError::ProtocolError(format!(
201
"No available location for endpoint {:?}",
202
partition.locations
0 commit comments