Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/builder/analyzed_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use crate::{
};
use anyhow::Result;
use futures::{future::Shared, FutureExt};
use log::trace;

pub struct AnalyzedFlow {
pub flow_instance: spec::FlowInstanceSpec,
Expand Down Expand Up @@ -56,15 +55,13 @@ impl AnalyzedFlow {
}

pub async fn get_execution_plan(&self) -> Result<Arc<plan::ExecutionPlan>> {
trace!("get_execution_plan() started");
let execution_plan = self
.execution_plan
.as_ref()
.ok_or_else(|| api_error!("Flow setup is not up to date. Please run `cocoindex setup` to update the setup."))?
.clone()
.await
.std_result()?;
trace!("get_execution_plan() finished");
Ok(execution_plan)
}
}
Expand Down
Loading