Skip to content

Commit

Permalink
Refactor error handling in ddl_controller.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
shanicky committed Jul 30, 2024
1 parent 453ada2 commit e8178e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/meta/src/rpc/ddl_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1091,11 +1091,8 @@ impl DdlController {

if let Some(creating_sink_table_fragments) = creating_sink_table_fragments {
let sink_fragment = creating_sink_table_fragments.sink_fragment().unwrap();

let sink = sink.unwrap();

let sink = sink.expect("sink not found");
let uniq_name = &format!("{}.{}.{}", sink.database_id, sink.schema_id, sink.name);

Self::inject_replace_table_plan_for_sink(
Some(sink.id),
&sink_fragment,
Expand Down

0 comments on commit e8178e4

Please sign in to comment.