Skip to content

Commit

Permalink
fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
onewe committed Mar 8, 2024
1 parent b65c452 commit 9772d2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
- 2181:2181
env:
ZOO_MY_ID: 1
nacos:
image: nacos/nacos-server:V2.3.1
ports:
- 8848:8848
env:
MODE: standalone
steps:
- uses: actions/checkout@main
- uses: actions-rs/toolchain@v1
Expand Down
2 changes: 1 addition & 1 deletion examples/greeter/src/greeter/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async fn main() {
.add_registry_extension_loader(Box::new(NacosRegistryExtensionLoader))
.await;

let builder = ClientBuilder::new().with_registry("nacos://172.20.69.109:8848".parse().unwrap());
let builder = ClientBuilder::new().with_registry("nacos://127.0.0.1:8848".parse().unwrap());

let mut cli = GreeterClient::new(builder);

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 @@ -65,7 +65,7 @@ async fn main() {

let mut f = Dubbo::new()
.with_config(r)
.add_registry("nacos://172.20.69.109:8848/");
.add_registry("nacos://127.0.0.1:8848/");

f.start().await;
}
Expand Down

0 comments on commit 9772d2a

Please sign in to comment.