Skip to content

Commit

Permalink
refact: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yang20150702 committed Jul 8, 2024
1 parent 6a80a31 commit ba2098a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/echo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async-trait = "0.1.56"
tokio-stream = "0.1"

dubbo = {path = "../../dubbo"}
registry-zookeeper.workspace=true
dubbo-registry-zookeeper = {path="../../registry/zookeeper"}

[build-dependencies]
dubbo-build = {path = "../../dubbo-build", version = "0.3.0" }
4 changes: 2 additions & 2 deletions examples/greeter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ prost-serde-derive = "0.1.2"
async-trait = "0.1.56"
tokio-stream = "0.1"
dubbo = { path = "../../dubbo"}
registry-zookeeper.workspace = true
registry-nacos.workspace = true
dubbo-registry-zookeeper = {path="../../registry/zookeeper"}
dubbo-registry-nacos = {path="../../registry/nacos"}

[build-dependencies]
dubbo-build = { path = "../../dubbo-build", version = "0.3.0" }
2 changes: 1 addition & 1 deletion examples/greeter/src/greeter/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use dubbo::codegen::*;
use dubbo::{extension, extension::registry_extension::RegistryExtension};
use futures_util::StreamExt;
use protos::{greeter_client::GreeterClient, GreeterRequest};
use registry_nacos::NacosRegistry;
use dubbo_registry_nacos::NacosRegistry;

#[tokio::main]
async fn main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/greeter/src/greeter/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::{io::ErrorKind, pin::Pin};

use async_trait::async_trait;
use futures_util::{Stream, StreamExt};
use registry_nacos::NacosRegistry;
use dubbo_registry_nacos::NacosRegistry;
use tokio::sync::mpsc;
use tokio_stream::wrappers::ReceiverStream;

Expand Down

0 comments on commit ba2098a

Please sign in to comment.