Skip to content

Commit 8603d7b

Browse files
committed
Merge branch 'main' of github.com:polaris-contrib/polaris-rust
* 'main' of github.com:polaris-contrib/polaris-rust: docs:完善Cargo.toml内容 docs:完善Cargo.toml内容
2 parents fd8bc83 + f6a1a93 commit 8603d7b

File tree

4 files changed

+9
-478
lines changed

4 files changed

+9
-478
lines changed

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ keywords = ["polaris", "solution", "governance", "server", "proxyless"]
1212
categories = ["config", "asynchronous", "development-tools"]
1313
readme = "README.md"
1414

15+
authors = ["polaris-contrib", "houseme <[email protected]>", "liaochuntao <[email protected]>"]
16+
categories = ["polaris", "discovery", "configuration", "governance"]
17+
keywords = ["polaris", "discovery", "configuration", "governance"]
18+
license = "BSD 3 OR MIT OR Apache-2.0"
19+
readme = "README.md"
20+
repository = "https://github.com/polaris-contrib/polaris-rust"
21+
# Crate build related
22+
exclude = ["examples/*", "benches/*", "tests/*", ".gitignore"]
23+
1524
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1625
[dependencies]
1726
bytes = { version = "1.4.0" }

src/plugins/connector/grpc/connector.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use crate::core::model::pb::lib::{
2727
};
2828
use crate::core::plugin::connector::{Connector, InitConnectorOption, ResourceHandler};
2929
use crate::core::plugin::plugins::Plugin;
30-
use crate::plugins::connector::grpc::manager::ConnectionManager;
3130
use std::cmp::PartialEq;
3231
use std::collections::HashMap;
3332
use std::str::FromStr;
@@ -46,8 +45,6 @@ use tonic::transport::{Channel, Endpoint};
4645
use tonic::Streaming;
4746
use tracing::Instrument;
4847

49-
use super::manager::EmptyConnectionSwitchListener;
50-
5148
struct ResourceHandlerWrapper {
5249
handler: Box<dyn ResourceHandler>,
5350
revision: String,
@@ -58,7 +55,6 @@ pub struct GrpcConnector {
5855
opt: InitConnectorOption,
5956
discover_channel: Channel,
6057
config_channel: Channel,
61-
connection_manager: Arc<ConnectionManager>,
6258
discover_grpc_client: PolarisGrpcClient<Channel>,
6359
config_grpc_client: PolarisConfigGrpcClient<Channel>,
6460

@@ -90,12 +86,6 @@ fn new_connector(opt: InitConnectorOption) -> Box<dyn Connector> {
9086
opt: opt,
9187
discover_channel: discover_channel.clone(),
9288
config_channel: config_channel.clone(),
93-
connection_manager: Arc::new(ConnectionManager::new(
94-
connect_timeout,
95-
server_switch_interval,
96-
client_id,
97-
Arc::new(EmptyConnectionSwitchListener::new()),
98-
)),
9989
discover_grpc_client: discover_grpc_client,
10090
config_grpc_client: config_grpc_client,
10191

0 commit comments

Comments
 (0)