Skip to content

Commit

Permalink
Updated timeout for app install to 20 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
fayeed committed Oct 9, 2023
1 parent a7dd1d5 commit 26b0919
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ use crate::holochain_service::{HolochainService, LocalConductorConfig};
use super::get_holochain_service;

// The duration to use for timeouts
const TIMEOUT_DURATION: Duration = Duration::from_secs(5);
const TIMEOUT_DURATION: Duration = Duration::from_secs(10);

const APP_INSTALL_TIMEOUT_DURATION: Duration = Duration::from_secs(20);

#[op]
async fn start_holochain_conductor(config: LocalConductorConfig) -> Result<(), AnyError> {
Expand Down Expand Up @@ -46,7 +48,7 @@ async fn log_dht_status() -> Result<(), AnyError> {
#[op]
async fn install_app(install_app_payload: InstallAppPayload) -> Result<AppInfo, AnyError> {
timeout(
TIMEOUT_DURATION,
APP_INSTALL_TIMEOUT_DURATION,
async {
let interface = get_holochain_service().await;
interface.install_app(install_app_payload).await
Expand Down

0 comments on commit 26b0919

Please sign in to comment.