let addr = ip_packet_addr::<true>(header)?;
if addr != ic.link.client.0 { throw!(PE::Dst(addr)) }
Ok(())
- }, |o| Ok({ rx_queue.push(o); }),
- |e| error!("{} #{}: rx discarding: {}", &ic, req_num, e))
+ },
+ |(o,())| future::ready(Ok({ rx_queue.push(o); })),
+ |e| Ok::<_,SlipFramesError<Void>>( {
+ error!("{} #{}: rx discarding: {}", &ic, req_num, e);
+ })).await
{
Ok(()) => reporter.lock().success(),
- Err(ErrorOnlyBad) => {
+ Err(SlipFramesError::ErrorOnlyBad) => {
reqs.push(Box::pin(async {
tokio::time::sleep(ic.http_retry).await;
None
}));
},
+ Err(SlipFramesError::Other(v)) => unreachable!(v),
}
}
},