Don't unwrap in production

This commit is contained in:
QuantumEntangledAndy committed 2023-08-16 19:00:53 +07:00
1 parent 13c06afc67
commit 4030f4a9cd
1 file changed
+6 -3
+6 -3
View File
@@ -82,9 +82,12 @@ impl Camera<Streaming> {
let data = timeout(Duration::from_secs(15), stream_data.get_data())
.await
.with_context(|| "Timed out waiting for new Media Frame")
.unwrap()
.unwrap(); //??;
// debug!("Straming: Got");
// Live
??;
// Debug
// .unwrap()
// .unwrap();
// debug!("Straming: Got");
match &data {
Ok(BcMedia::InfoV1(_)) => trace!("{}: - InfoV1", &tag_thread),
Ok(BcMedia::InfoV2(_)) => trace!("{}: - InfoV2", &tag_thread),