Skip to content

Commit

Permalink
docs: correct the spelling error (#163)
Browse files Browse the repository at this point in the history
docs: correct the spelling error

Signed-off-by: iutx <[email protected]>
  • Loading branch information
iutx authored Jan 30, 2024
1 parent 5dad29f commit c8cb302
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/basics_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Note that `Method` has a `{}` at the end, which can also have content. We will s

### Write Client and Server Code

What protobuf gives is a language-independent service definition, and we need to use [trpc command line tool](https://github.com/trpc-group/trpc-cmdline) to translate it into a corresponding language stub code. You can see the various options it supports with `$ tprc create -h`. You can refer to the quick start [helloworld](/examples/helloworld/pb/Makefile) project to quickly create your own stub code.
What protobuf gives is a language-independent service definition, and we need to use [trpc command line tool](https://github.com/trpc-group/trpc-cmdline) to translate it into a corresponding language stub code. You can see the various options it supports with `$ trpc create -h`. You can refer to the quick start [helloworld](/examples/helloworld/pb/Makefile) project to quickly create your own stub code.

The stub code is mainly divided into two parts: client and server.
Below is part of the generated client code. In [Quick Start](./quick_start.md), we use `NewGreeterClientProxy` to create a client instance and call its `Hello` method:
Expand Down
2 changes: 1 addition & 1 deletion docs/basics_tutorial.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ message HelloRsp {

### 编写客户端和服务端代码

protobuf 给出的是一个语言无关的服务定义,我们还要用 [trpc 命令行工具](https://github.com/trpc-group/trpc-cmdline)将它翻译成对应语言的桩代码。你可以通过 `$ tprc create -h` 查看它支持的各种选项。你可以参考快速开始的 [helloworld](/examples/helloworld/pb/Makefile) 项目来快速创建你自己的桩代码。
protobuf 给出的是一个语言无关的服务定义,我们还要用 [trpc 命令行工具](https://github.com/trpc-group/trpc-cmdline)将它翻译成对应语言的桩代码。你可以通过 `$ trpc create -h` 查看它支持的各种选项。你可以参考快速开始的 [helloworld](/examples/helloworld/pb/Makefile) 项目来快速创建你自己的桩代码。

桩代码主要分为 client 和 server 两部分。
下面是生成的部分 client 代码。在[快速开始](./quick_start.zh_CN.md)中,我们通过 `NewGreeterClientProxy` 来创建一个 client 实例,并调用了它的 `Hello` 方法:
Expand Down
2 changes: 1 addition & 1 deletion docs/user_guide/server/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,4 @@ tRPC-Go allows businesses to define and register serialization and deserializati

## Setting the maximum number of service coroutines

tRPC-Go supports service-level synchronous/asynchronous packet processing modes. For asynchronous mode, a coroutine pool is used to improve coroutine usage efficiency and performance. Users can set the maximum number of service coroutines through framework configuration and Option configuration. For details, please refer to the service configuration in the [tPRC-Go Framework Configuration](/docs/user_guide/framework_conf.md) section.
tRPC-Go supports service-level synchronous/asynchronous packet processing modes. For asynchronous mode, a coroutine pool is used to improve coroutine usage efficiency and performance. Users can set the maximum number of service coroutines through framework configuration and Option configuration. For details, please refer to the service configuration in the [tRPC-Go Framework Configuration](/docs/user_guide/framework_conf.md) section.
2 changes: 1 addition & 1 deletion docs/user_guide/server/overview.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,4 @@ tRPC-Go 自定义 RPC 消息体的序列化、反序列化方式,业务可以

## 设置服务最大协程数

tRPC-Go 支持服务级别的同/异步包处理模式,对于异步模式采用协程池来提升协程使用效率和性能。用户可以通过框架配置和 Option 配置两种方式来设置服务的最大协程数,具体请参考 [tPRC-Go 框架配置](/docs/user_guide/framework_conf.zh_CN.md) 章节的 service 配置。
tRPC-Go 支持服务级别的同/异步包处理模式,对于异步模式采用协程池来提升协程使用效率和性能。用户可以通过框架配置和 Option 配置两种方式来设置服务的最大协程数,具体请参考 [tRPC-Go 框架配置](/docs/user_guide/framework_conf.zh_CN.md) 章节的 service 配置。
2 changes: 1 addition & 1 deletion stream/README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func main() {
- 接收端每消费 1/4 的初始窗口大小进行 feedback,发送一个 feedback 帧,携带增量的 window size,发送端接收到这个增量 window size 之后加到本地可发送的 window 大小
- 帧分优先级,对于 feedback 的帧不做流控,优先级高于 Data 帧,防止因为优先级问题导致 feedback 帧发生阻塞

tPRC-Go 默认启用流控,目前默认窗口大小为 65535,如果连续发送超过 65535 大小的数据(序列化和压缩后),接收方没调用 Recv,则发送方会 block
tRPC-Go 默认启用流控,目前默认窗口大小为 65535,如果连续发送超过 65535 大小的数据(序列化和压缩后),接收方没调用 Recv,则发送方会 block
如果要设置客户端接收窗口大小,使用 client option `WithMaxWindowSize`

```go
Expand Down

0 comments on commit c8cb302

Please sign in to comment.