Skip to content

Commit

Permalink
Fixes influxdata#25611: Remove unused v3 write API and associated fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
Prerit008 committed Dec 6, 2024
1 parent 9b87cd7 commit 61b8314
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions influxdb3_server/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,6 @@ where
self.write_lp_inner(params, req, false, false).await
}

async fn write_v3(&self, req: Request<Body>) -> Result<Response<Body>> {
let query = req.uri().query().ok_or(Error::MissingWriteParams)?;
let params: WriteParams = serde_urlencoded::from_str(query)?;
self.write_lp_inner(params, req, false, true).await
}

async fn write_lp_inner(
&self,
params: WriteParams,
Expand Down Expand Up @@ -1374,7 +1368,6 @@ pub(crate) async fn route_request<T: TimeProvider>(

http_server.write_lp_inner(params, req, false, false).await
}
(Method::POST, "/api/v3/write") => http_server.write_v3(req).await,
(Method::POST, "/api/v3/write_lp") => http_server.write_lp(req).await,
(Method::GET | Method::POST, "/api/v3/query_sql") => http_server.query_sql(req).await,
(Method::GET | Method::POST, "/api/v3/query_influxql") => {
Expand Down

0 comments on commit 61b8314

Please sign in to comment.