Skip to content

Commit

Permalink
chore: after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 committed Dec 26, 2024
1 parent 0e11812 commit 294c4c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/flow/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use common_error::ext::BoxedError;
use common_error::{define_into_tonic_status, from_err_code_msg_to_header};
use common_macro::stack_trace_debug;
use common_telemetry::common_error::ext::ErrorExt;
use common_telemetry::common_error::status_code::StatusCode;\
use tonic::metadata::MetadataMap;
use common_telemetry::common_error::status_code::StatusCode;
use snafu::{Location, ResultExt, Snafu};
use tonic::metadata::MetadataMap;

use crate::adapter::FlowId;
use crate::expr::EvalError;
Expand Down
11 changes: 3 additions & 8 deletions src/flow/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ use tonic::{Request, Response, Status};

use crate::adapter::{CreateFlowArgs, FlowWorkerManagerRef};
use crate::error::{
to_status_with_last_err, CacheRequiredSnafu, ExternalSnafu, FlowNotFoundSnafu, ListFlowsSnafu,
ParseAddrSnafu, ShutdownServerSnafu, StartServerSnafu, UnexpectedSnafu,
FindTableRouteSnafu,
RequestQuerySnafu,
to_status_with_last_err, CacheRequiredSnafu, ExternalSnafu, FindTableRouteSnafu,
FlowNotFoundSnafu, ListFlowsSnafu, ParseAddrSnafu, RequestQuerySnafu, ShutdownServerSnafu,
StartServerSnafu, UnexpectedSnafu,
};
use crate::heartbeat::HeartbeatTask;
use crate::metrics::{METRIC_FLOW_PROCESSING_TIME, METRIC_FLOW_ROWS};
Expand Down Expand Up @@ -583,10 +582,6 @@ impl FrontendInvoker {
.map_err(BoxedError::new)
.context(common_frontend::error::ExternalSnafu)
}

pub fn statement_executor(&self) -> Arc<StatementExecutor> {
self.statement_executor.clone()
}
}

/// get all flow ids in this flownode
Expand Down

0 comments on commit 294c4c5

Please sign in to comment.