Skip to content

Commit f8dea56

Browse files
author
Devdutt Shenoi
committed
doc: explain method in name
1 parent 3a75cd2 commit f8dea56

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/handlers/http/logstream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub async fn detect_schema(Json(json): Json<Value>) -> Result<impl Responder, St
129129
Ok((web::Json(schema), StatusCode::OK))
130130
}
131131

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

135135
// Ensure parseable is aware of stream in distributed mode

src/handlers/http/modal/query_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ impl QueryServer {
275275
// GET "/logstream/{logstream}/schema" ==> Get schema for given log stream
276276
web::resource("/schema").route(
277277
web::get()
278-
.to(logstream::schema)
278+
.to(logstream::get_schema)
279279
.authorize_for_stream(Action::GetSchema),
280280
),
281281
)

src/handlers/http/modal/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl Server {
349349
// GET "/logstream/{logstream}/schema" ==> Get schema for given log stream
350350
web::resource("/schema").route(
351351
web::get()
352-
.to(logstream::schema)
352+
.to(logstream::get_schema)
353353
.authorize_for_stream(Action::GetSchema),
354354
),
355355
)

0 commit comments

Comments
 (0)