File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,17 @@ pub enum ExitMode {
33
33
/// ```
34
34
/// use crate::app_runner::start;
35
35
/// use crate::pre_compute_app::PreComputeApp;
36
+ ///
37
+ /// let chain_task_id = ;
38
+ /// let pre_compute_args = match PreComputeArgs::read_args() {
39
+ /// Ok(pre_compute_args) => pre_compute_args,
40
+ /// Err(_) => {
41
+ /// return ExitMode::InitializationFailure;
42
+ /// }
43
+ /// };
36
44
///
37
- /// let pre_compute_app = PreComputeApp::new();
38
- /// let exit_code = start_with_app(pre_compute_app);
45
+ /// let pre_compute_app = PreComputeApp::new(pre_compute_args, chain_task_id );
46
+ /// let exit_code = start_with_app(& pre_compute_app, &chain_task_id)
39
47
/// ```
40
48
pub fn start_with_app < A : PreComputeAppTrait > ( pre_compute_app : & A , chain_task_id : & str ) -> ExitMode {
41
49
let exit_cause = ReplicateStatusCause :: PreComputeFailedUnknownIssue ;
You can’t perform that action at this time.
0 commit comments