Skip to content

Commit

Permalink
docs:完善Cargo.toml内容
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Oct 24, 2024
1 parent d31e9be commit f6a1a93
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 478 deletions.
10 changes: 0 additions & 10 deletions src/plugins/connector/grpc/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use crate::core::model::pb::lib::{
};
use crate::core::plugin::connector::{Connector, InitConnectorOption, ResourceHandler};
use crate::core::plugin::plugins::Plugin;
use crate::plugins::connector::grpc::manager::ConnectionManager;
use std::cmp::PartialEq;
use std::collections::HashMap;
use std::str::FromStr;
Expand All @@ -46,8 +45,6 @@ use tonic::transport::{Channel, Endpoint};
use tonic::Streaming;
use tracing::Instrument;

use super::manager::EmptyConnectionSwitchListener;

struct ResourceHandlerWrapper {
handler: Box<dyn ResourceHandler>,
revision: String,
Expand All @@ -58,7 +55,6 @@ pub struct GrpcConnector {
opt: InitConnectorOption,
discover_channel: Channel,
config_channel: Channel,
connection_manager: Arc<ConnectionManager>,
discover_grpc_client: PolarisGrpcClient<Channel>,

Check warning on line 58 in src/plugins/connector/grpc/connector.rs

View workflow job for this annotation

GitHub Actions / clippy

fields `discover_grpc_client` and `config_grpc_client` are never read

warning: fields `discover_grpc_client` and `config_grpc_client` are never read --> src/plugins/connector/grpc/connector.rs:58:5 | 54 | pub struct GrpcConnector { | ------------- fields in this struct ... 58 | discover_grpc_client: PolarisGrpcClient<Channel>, | ^^^^^^^^^^^^^^^^^^^^ 59 | config_grpc_client: PolarisConfigGrpcClient<Channel>, | ^^^^^^^^^^^^^^^^^^ | = note: `GrpcConnector` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
config_grpc_client: PolarisConfigGrpcClient<Channel>,

Expand Down Expand Up @@ -90,12 +86,6 @@ fn new_connector(opt: InitConnectorOption) -> Box<dyn Connector> {
opt: opt,

Check warning on line 86 in src/plugins/connector/grpc/connector.rs

View workflow job for this annotation

GitHub Actions / clippy

redundant field names in struct initialization

warning: redundant field names in struct initialization --> src/plugins/connector/grpc/connector.rs:86:9 | 86 | opt: opt, | ^^^^^^^^ help: replace it with: `opt` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
discover_channel: discover_channel.clone(),
config_channel: config_channel.clone(),
connection_manager: Arc::new(ConnectionManager::new(
connect_timeout,
server_switch_interval,
client_id,
Arc::new(EmptyConnectionSwitchListener::new()),
)),
discover_grpc_client: discover_grpc_client,

Check warning on line 89 in src/plugins/connector/grpc/connector.rs

View workflow job for this annotation

GitHub Actions / clippy

redundant field names in struct initialization

warning: redundant field names in struct initialization --> src/plugins/connector/grpc/connector.rs:89:9 | 89 | discover_grpc_client: discover_grpc_client, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `discover_grpc_client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
config_grpc_client: config_grpc_client,

Check warning on line 90 in src/plugins/connector/grpc/connector.rs

View workflow job for this annotation

GitHub Actions / clippy

redundant field names in struct initialization

warning: redundant field names in struct initialization --> src/plugins/connector/grpc/connector.rs:90:9 | 90 | config_grpc_client: config_grpc_client, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `config_grpc_client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names

Expand Down
Loading

0 comments on commit f6a1a93

Please sign in to comment.