mirror of
https://gitee.com/sogou/srpc.git
synced 2024-12-21 16:14:54 +08:00
docs: update usage of upstream in docs-06-workflow.md
This commit is contained in:
parent
5750248cef
commit
6d0829998c
@ -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,其他用法与示例类似
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user