Skip to content

Commit

Permalink
修正文档连接池配置说明
Browse files Browse the repository at this point in the history
  • Loading branch information
chentianming11 committed Jan 6, 2021
1 parent 209efd2 commit bd88250
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ public interface HttpApi {

```yaml
retrofit:
# 连接池配置
pool:
test1:
max-idle-connections: 3
keep-alive-second: 100
test2:
max-idle-connections: 5
keep-alive-second: 50
# 连接池配置
pool:
# test1连接池配置
test1:
# 最大空闲连接数
max-idle-connections: 3
# 连接保活时间(秒)
keep-alive-second: 100
```
2. 通过`@RetrofitClient`的`poolName`属性来指定使用的连接池。
Expand Down
16 changes: 8 additions & 8 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,14 @@ By default, all HTTP requests sent through `Retrofit` will use the default conne

```yaml
retrofit:
# Connection pool configuration
pool:
test1:
max-idle-connections: 3
keep-alive-second: 100
test2:
max-idle-connections: 5
keep-alive-second: 50
# 连接池配置
pool:
# test1连接池配置
test1:
# 最大空闲连接数
max-idle-connections: 3
# 连接保活时间(秒)
keep-alive-second: 100
```
2. Use the `poolName` property of `@Retrofitclient` to specify the connection pool to be used.
Expand Down

0 comments on commit bd88250

Please sign in to comment.