diff --git a/examples/cloud.rs b/examples/cloud.rs index 378a620..fe09d7e 100644 --- a/examples/cloud.rs +++ b/examples/cloud.rs @@ -1,4 +1,5 @@ use clap::Parser; +use std::sync::Arc; use scroll_proving_sdk::{ config::{CloudProverConfig, Config}, @@ -59,5 +60,7 @@ fn main() -> anyhow::Result<()> { .with_proving_service(Box::new(cloud_prover)) .build()?; - Arc::new(prover).run() + Arc::new(prover).run()?; + + loop {} } diff --git a/examples/local.rs b/examples/local.rs index d49b28f..4ba5609 100644 --- a/examples/local.rs +++ b/examples/local.rs @@ -1,4 +1,5 @@ use clap::Parser; +use std::sync::Arc; use scroll_proving_sdk::{ config::{Config, LocalProverConfig}, @@ -53,5 +54,7 @@ fn main() -> anyhow::Result<()> { .with_proving_service(Box::new(local_prover)) .build()?; - Arc::new(prover).run() + Arc::new(prover).run()?; + + loop {} }