@@ -5,6 +5,7 @@ use std::sync::Arc;
55
66use anyhow:: Result ;
77use axum:: async_trait;
8+ use futures:: future:: BoxFuture ;
89use serde:: de:: DeserializeOwned ;
910use serde:: Serialize ;
1011
@@ -208,7 +209,7 @@ impl<T: SourceFactoryBase> SourceFactory for T {
208209 context : Arc < FlowInstanceContext > ,
209210 ) -> Result < (
210211 EnrichedValueType ,
211- ExecutorFuture < ' static , Box < dyn SourceExecutor > > ,
212+ BoxFuture < ' static , Result < Box < dyn SourceExecutor > > > ,
212213 ) > {
213214 let spec: T :: Spec = serde_json:: from_value ( spec) ?;
214215 let output_schema = self . get_output_schema ( & spec, & context) ?;
@@ -259,7 +260,7 @@ impl<T: SimpleFunctionFactoryBase> SimpleFunctionFactory for T {
259260 context : Arc < FlowInstanceContext > ,
260261 ) -> Result < (
261262 EnrichedValueType ,
262- ExecutorFuture < ' static , Box < dyn SimpleFunctionExecutor > > ,
263+ BoxFuture < ' static , Result < Box < dyn SimpleFunctionExecutor > > > ,
263264 ) > {
264265 let spec: T :: Spec = serde_json:: from_value ( spec) ?;
265266 let mut args_resolver = OpArgsResolver :: new ( & input_schema) ?;
@@ -288,7 +289,7 @@ pub trait StorageFactoryBase: ExportTargetFactory + Send + Sync + 'static {
288289 context : Arc < FlowInstanceContext > ,
289290 ) -> Result < (
290291 ( Self :: Key , Self :: SetupState ) ,
291- ExecutorFuture < ' static , ( Arc < dyn ExportTargetExecutor > , Option < Arc < dyn QueryTarget > > ) > ,
292+ BoxFuture < ' static , Result < ( Arc < dyn ExportTargetExecutor > , Option < Arc < dyn QueryTarget > > ) > > ,
292293 ) > ;
293294
294295 fn check_setup_status (
@@ -388,7 +389,7 @@ impl<T: StorageFactoryBase> ExportTargetFactory for T {
388389 context : Arc < FlowInstanceContext > ,
389390 ) -> Result < (
390391 ( serde_json:: Value , serde_json:: Value ) ,
391- ExecutorFuture < ' static , ( Arc < dyn ExportTargetExecutor > , Option < Arc < dyn QueryTarget > > ) > ,
392+ BoxFuture < ' static , Result < ( Arc < dyn ExportTargetExecutor > , Option < Arc < dyn QueryTarget > > ) > > ,
392393 ) > {
393394 let spec: T :: Spec = serde_json:: from_value ( spec) ?;
394395 let ( ( setup_key, setup_state) , executors) = StorageFactoryBase :: build (
0 commit comments