Skip to content

Commit

Permalink
remove async-trait
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Dec 29, 2023
1 parent bd9be7e commit f2b463f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = [

[package]
name = "drpc"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
description = "Rust High Performance Async RPC Framework"
readme = "Readme.md"
Expand Down
2 changes: 1 addition & 1 deletion example/src/redis_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use tokio::time::sleep;
/// docker run -it -d --name redis -p 6379:6379 redis
#[tokio::main]
async fn main() {
let manager = BalanceManger::new::<BinCodec>(ManagerConfig::default(), RedisCenter::new());
let manager = BalanceManger::new(ManagerConfig::default(), RedisCenter::new());
let m_clone = manager.clone();
tokio::spawn(async move {
spawn_server(m_clone).await;
Expand Down
2 changes: 1 addition & 1 deletion src/balance_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub struct BalanceManger<C: Codec, Registry: RegistryCenter> {
}

impl<C: Codec, Registry: RegistryCenter> BalanceManger<C, Registry> {
pub fn new<F>(cfg: ManagerConfig, f: Registry) -> Arc<Self>
pub fn new(cfg: ManagerConfig, f: Registry) -> Arc<Self>
{
Arc::new(Self {
config: cfg,
Expand Down

0 comments on commit f2b463f

Please sign in to comment.