Change time units
This commit is contained in:
4 files changed
+4
-4
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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?;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user