refactor: prune edge compat aliases (#3692)

This commit is contained in:
安正超
2026-06-21 17:41:07 +08:00
committed by GitHub
parent 9d510e9d5b
commit 30b46640b4
7 changed files with 196 additions and 36 deletions
+24 -3
View File
@@ -19,6 +19,27 @@ pub(crate) type TonicInterceptor = rustfs_ecstore::api::rpc::TonicInterceptor;
pub(crate) type VolumeInfo = rustfs_ecstore::api::disk::VolumeInfo;
pub(crate) type WalkDirOptions = rustfs_ecstore::api::disk::WalkDirOptions;
pub(crate) use rustfs_ecstore::api::rpc::{
gen_tonic_signature_interceptor, node_service_time_out_client, node_service_time_out_client_no_auth,
};
pub(crate) use rustfs_ecstore::api::rpc::gen_tonic_signature_interceptor;
pub(crate) async fn node_service_time_out_client(
addr: &String,
interceptor: TonicInterceptor,
) -> Result<
rustfs_protos::proto_gen::node_service::node_service_client::NodeServiceClient<
tonic::service::interceptor::InterceptedService<tonic::transport::Channel, TonicInterceptor>,
>,
Box<dyn std::error::Error>,
> {
rustfs_ecstore::api::rpc::node_service_time_out_client(addr, interceptor).await
}
pub(crate) async fn node_service_time_out_client_no_auth(
addr: &String,
) -> Result<
rustfs_protos::proto_gen::node_service::node_service_client::NodeServiceClient<
tonic::service::interceptor::InterceptedService<tonic::transport::Channel, TonicInterceptor>,
>,
Box<dyn std::error::Error>,
> {
rustfs_ecstore::api::rpc::node_service_time_out_client_no_auth(addr).await
}