Skip to content

Commit 048ed39

Browse files
committed
Remove unused imports; fix warnings
1 parent 1a6586f commit 048ed39

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

crates/grpc_server/src/config.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ impl GRPCServerConfig {
100100

101101
// create db config for api
102102
let db_config = api::DbConfig {
103-
storage_type: storage_type,
104-
index_type: index_type,
105-
data_path: data_path,
106-
dimension: dimension,
103+
storage_type,
104+
index_type,
105+
data_path,
106+
dimension,
107107
};
108108

109109
// create socket address for grpc server
@@ -116,10 +116,10 @@ impl GRPCServerConfig {
116116
}
117117

118118
Ok(GRPCServerConfig {
119-
addr: addr,
120-
root_password: root_password,
121-
db_config: db_config,
122-
logging: logging,
119+
addr,
120+
root_password,
121+
db_config,
122+
logging,
123123
})
124124
}
125125
}

crates/grpc_server/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
use api;
2-
use defs;
31
use grpc_server::config::GRPCServerConfig;
42
use grpc_server::constants::SIMILARITY_PROTOBUFF_MAP;
53
use grpc_server::interceptors;
64
use grpc_server::utils::log_rpc;
75
use std::panic;
86
use tonic::{Request, Response, Status, service::InterceptorLayer, transport::Server};
97
use tracing::{Level, event};
10-
use tracing_subscriber;
118
use vectordb::{
129
DenseVector, InsertVectorRequest, Point, PointId, SearchRequest, SearchResponse,
1310
vector_db_server::{VectorDb, VectorDbServer},
@@ -101,7 +98,7 @@ impl VectorDb for VectorDBService {
10198
// create a mapped vector of PointIds
10299
let result = result_point_ids
103100
.into_iter()
104-
.map(|id| PointId { id: id })
101+
.map(|id| PointId { id })
105102
.collect();
106103

107104
Ok(Response::new(SearchResponse {

0 commit comments

Comments
 (0)