docs: update usage of upstream in docs-06-workflow.md

This commit is contained in:
holmes1412 2023-03-27 16:28:46 +08:00
parent 5750248cef
commit 6d0829998c
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ int main()
// 2. 构造参数填上upstream的名字
RPCClientParams client_params = RPC_CLIENT_PARAMS_DEFAULT;
client_params.host = "srpc::echo_server"; // 这个scheme只用于upstream URI解析
client_params.host = "echo_server";
client_params.port = 1412; // 这个port只用于upstream URI解析不影响具体实例的选取
// 3. 用参数创建client其他用法与示例类似

View File

@ -125,7 +125,7 @@ int main()
// 2. create params and fill upstream name
RPCClientParams client_params = RPC_CLIENT_PARAMS_DEFAULT;
client_params.host = "srpc::echo_server"; // this scheme only used when upstream URI parsing
client_params.host = "echo_server";
client_params.port = 1412; // this port only used when upstream URI parsing and will not affect the select of instances
// 3. construct client by params, the rest of usage is similar as other tutorials