mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-27 06:20:28 +00:00
Simplify error return.
This commit is contained in:
parent
347ac6fcfa
commit
42d6f62509
@ -304,9 +304,7 @@ pub async fn get_frame_logs(
|
|||||||
.collect(),
|
.collect(),
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Err(e) = channel.blocking_send(pl) {
|
channel.blocking_send(pl)?;
|
||||||
return Err(anyhow::Error::new(e));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"down" => {
|
"down" => {
|
||||||
@ -337,9 +335,7 @@ pub async fn get_frame_logs(
|
|||||||
.collect(),
|
.collect(),
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Err(e) = channel.blocking_send(pl) {
|
channel.blocking_send(pl)?;
|
||||||
return Err(anyhow::Error::new(e));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user