Skip to content

Commit

Permalink
doc: explain method in name
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Feb 14, 2025
1 parent 3a75cd2 commit f8dea56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/handlers/http/logstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub async fn detect_schema(Json(json): Json<Value>) -> Result<impl Responder, St
Ok((web::Json(schema), StatusCode::OK))
}

pub async fn schema(stream_name: Path<String>) -> Result<impl Responder, StreamError> {
pub async fn get_schema(stream_name: Path<String>) -> Result<impl Responder, StreamError> {
let stream_name = stream_name.into_inner();

// Ensure parseable is aware of stream in distributed mode
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/http/modal/query_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ impl QueryServer {
// GET "/logstream/{logstream}/schema" ==> Get schema for given log stream
web::resource("/schema").route(
web::get()
.to(logstream::schema)
.to(logstream::get_schema)
.authorize_for_stream(Action::GetSchema),
),
)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/http/modal/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ impl Server {
// GET "/logstream/{logstream}/schema" ==> Get schema for given log stream
web::resource("/schema").route(
web::get()
.to(logstream::schema)
.to(logstream::get_schema)
.authorize_for_stream(Action::GetSchema),
),
)
Expand Down

0 comments on commit f8dea56

Please sign in to comment.