Skip to content

Commit

Permalink
update timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
S3bb1 committed Jul 24, 2023
1 parent b308cbb commit 2d7e798
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions src/vade_sidetree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ extern crate vade;
use crate::datatypes::*;
#[cfg(feature = "sdk")]
use crate::in3_request_list::{send_request, ResolveHttpRequest};
use crate::vade_sidetree_client::{
did::{JsonWebKey, PublicKey, Service},
multihash,
operations::{self, DeactivateOperationInput, OperationInput},
operations::{RecoverOperationInput, UpdateOperationInput},
};
use async_std::task;
use async_trait::async_trait;
use core::time;
Expand All @@ -30,12 +36,6 @@ use std::error::Error;
#[cfg(feature = "sdk")]
use std::os::raw::c_void;
use vade::{VadePlugin, VadePluginResultValue};
use crate::vade_sidetree_client::{
did::{JsonWebKey, PublicKey, Service},
multihash,
operations::{self, DeactivateOperationInput, OperationInput},
operations::{RecoverOperationInput, UpdateOperationInput},
};

const DEFAULT_URL: &str = "https://sidetree.evan.network/3.0/";
const EVAN_METHOD: &str = "did:evan";
Expand Down Expand Up @@ -238,7 +238,7 @@ impl VadePlugin for VadeSidetree {
} else {
task::sleep(time::Duration::from_millis(1_000)).await;
timeout_counter += 1;
if timeout_counter == 60 {
if timeout_counter == 120 {
return Ok(VadePluginResultValue::Success(Some(
"Error waiting for DID create".to_string(),
)));
Expand Down Expand Up @@ -374,7 +374,7 @@ impl VadePlugin for VadeSidetree {
if !update_found {
task::sleep(time::Duration::from_millis(1_000)).await;
timeout_counter += 1;
if timeout_counter == 60 {
if timeout_counter == 120 {
return Ok(VadePluginResultValue::Success(Some(
"Error waiting for DID update".to_string(),
)));
Expand Down Expand Up @@ -416,12 +416,12 @@ impl VadePlugin for VadeSidetree {
#[cfg(test)]
mod tests {
use super::*;
use serial_test::serial;
use std::sync::Once;
use crate::vade_sidetree_client::{
did::{Document, JsonWebKey, Purpose, Service},
secp256k1, Patch,
};
use serial_test::serial;
use std::sync::Once;

static INIT: Once = Once::new();

Expand Down

0 comments on commit 2d7e798

Please sign in to comment.