Skip to content

chore: fix method names #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2025
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub async fn init_server(
)
.route(
"/flows/:flowInstName/rowStatus",
routing::get(service::flows::get_row_index_status),
routing::get(service::flows::get_row_indexing_status),
)
.route(
"/flows/:flowInstName/update",
Expand Down
6 changes: 3 additions & 3 deletions src/service/flows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,17 @@ pub async fn update(
Ok(Json(live_updater.index_update_info()))
}

pub async fn get_row_index_status(
pub async fn get_row_indexing_status(
Path(flow_name): Path<String>,
Query(query): Query<SourceRowKeyParams>,
State(lib_context): State<Arc<LibContext>>,
) -> Result<Json<indexing_status::SourceRowIndexingStatus>, ApiError> {
let flow_ctx = lib_context.get_flow_context(&flow_name)?;
let source_row_key_ctx = SourceRowKeyContextHolder::create(&flow_ctx, query).await?;
let index_status = indexing_status::get_source_row_indexing_status(
let indexing_status = indexing_status::get_source_row_indexing_status(
&source_row_key_ctx.as_context(),
&lib_context.builtin_db_pool,
)
.await?;
Ok(Json(index_status))
Ok(Json(indexing_status))
}