```rust pub async fn init() { let client = NacosClient::new( NacosConfig::new( "http", "139.155.225.19", 8848), ServerConfig::new( "127.0.0.1", 8080, "test"), ); client.register(&None).await; }
pub async fn tryreqserver() { use nacosapi::integration::NacosClient; use nacosapi::model::{NacosConfig, ServerConfig};
let client = NacosClient::new(
NacosConfig::new(
"http",
"139.155.225.19",
8848),
ServerConfig::new(
"127.0.0.1",
8080,
"test"),
);
let addr = client.get_addr_simple("test", "/hi/friend").await?;
assert!("http://127.0.0.1:8080/hi/friend", addr.as_str());
} ```