Change time units

This commit is contained in:
QuantumEntangledAndy committed 2024-04-16 10:08:41 +07:00
1 parent aa8bb6a5db
commit b8a22f4663
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ impl BcCamera {
sub_set.send(get).await?;
if let Ok(reply) =
tokio::time::timeout(tokio::time::Duration::from_micros(500), sub_set.recv()).await
tokio::time::timeout(tokio::time::Duration::from_millis(500), sub_set.recv()).await
{
let msg = reply?;
if let BcMeta {
+1 -1
View File
@@ -84,7 +84,7 @@ impl BcCamera {
sub_set.send(get).await?;
if let Ok(reply) =
tokio::time::timeout(tokio::time::Duration::from_micros(500), sub_set.recv()).await
tokio::time::timeout(tokio::time::Duration::from_millis(500), sub_set.recv()).await
{
let msg = reply?;
+1 -1
View File
@@ -97,7 +97,7 @@ impl BcCamera {
sub_set.send(get).await?;
if let Ok(reply) =
tokio::time::timeout(tokio::time::Duration::from_micros(500), sub_set.recv()).await
tokio::time::timeout(tokio::time::Duration::from_millis(500), sub_set.recv()).await
{
let msg = reply?;
if msg.meta.response_code != 200 {
+1 -1
View File
@@ -30,7 +30,7 @@ impl BcCamera {
sub_set.send(get).await?;
if let Ok(reply) =
tokio::time::timeout(tokio::time::Duration::from_micros(500), sub_set.recv()).await
tokio::time::timeout(tokio::time::Duration::from_millis(500), sub_set.recv()).await
{
let msg = reply?;
if msg.meta.response_code != 200 {