refactor: remove redudant PromStoreProtocolHandler::write (#3553)

refactor: remove redudant PromStoreProtocolHandler::write API and rename PromStoreProtocolHandler::write_fast to write
This commit is contained in:
Lei, HUANG
2024-03-22 10:09:00 +08:00
committed by GitHub
parent 1f0fc40287
commit 86fb9d8ac7
9 changed files with 46 additions and 99 deletions

View File

@@ -25,6 +25,7 @@ mod tests {
use prost::Message;
use servers::http::prom_store::PHYSICAL_TABLE_PARAM;
use servers::prom_store;
use servers::prom_store::to_grpc_row_insert_requests;
use servers::query_handler::sql::SqlQueryHandler;
use servers::query_handler::PromStoreProtocolHandler;
use session::context::QueryContext;
@@ -107,8 +108,9 @@ mod tests {
.unwrap()
.is_ok());
let (row_inserts, _) = to_grpc_row_insert_requests(&write_request).unwrap();
instance
.write(write_request, ctx.clone(), true)
.write(row_inserts, ctx.clone(), true)
.await
.unwrap();