Skip to content

Commit a7a343c

Browse files
authored
chore: upgrade typos (#1332)
1 parent 0bf6396 commit a7a343c

File tree

32 files changed

+42
-36
lines changed

32 files changed

+42
-36
lines changed

.github/workflows/push-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
- uses: actions/checkout@v4
1010

1111
- name: typos-action
12-
uses: crate-ci/typos@v1.14.3
12+
uses: crate-ci/typos@v1.32.0

_typos.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
[files]
44
extend-exclude = ["*.json", "*.js", "static/*", "layouts/*", "assets/*", "i18n/*"]
55

6+
[default]
7+
extend-ignore-re = [
8+
"mmaping files"
9+
]
10+
611
[default.extend-words]
712
datas = "datas"
813
mmaped = "mmaped"
914
exten = "exten"
10-
invokable = "invokable"
15+
invokable = "invokable"
16+
typ = "typ"

content/en/blog/releases/Kitex/release-v043.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ description: >
1818
### **Optimization**
1919

2020
1. **Frugal Performance Optimization** : Support frugal precompile (pretouch) when new client or server, which is to reduce the impact of dynamic compilation on latency.
21-
2. **Connpool Optimiztion** : Refactor connection pool to improve the idle connections cleanup.
21+
2. **Connpool Optimization** : Refactor connection pool to improve the idle connections cleanup.
2222

2323
---
2424

content/en/blog/releases/Kitex/release-v0_13_0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ description: >
9393

9494
[[#1725](https://github.com/cloudwego/kitex/pull/1725)] fix: code gen import issue for streamx mode, stream call judgement bug and set ttheader streaming as default
9595

96-
[[#1727](https://github.com/cloudwego/kitex/pull/1727)] fix(tool): fix tool UseStdLib remains unexcepted lib issue
96+
[[#1727](https://github.com/cloudwego/kitex/pull/1727)] fix(tool): fix tool UseStdLib remains unexpected lib issue
9797

9898
### Refactor
9999
[[#1658](https://github.com/cloudwego/kitex/pull/1658)] refactor: streamx api to adapt both grpc and ttheader streaming protocol and provide more user-friendly interface

content/en/cooperation/shumei.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Kitex 提供了一个很好的机制,叫**重试熔断**的机制,其中有
250250

251251
**Thrift** **(C++)/ Fbthrift 服务的过载保护**
252252

253-
> 基础服务层大多是计算密集型服务,CPU 利用率等不完全反应程序的负载,服务过载可能是 GPU 负载过高。 使用请求在队列中的平均等待时间(“queue time”)来计算服务的负载。之所以不选择请求的平均处理时间(“procss time”),是为了去除下游服务调用的影响。有时 process time 的增加并不代表当前服务过载了,而是请求依赖的下游服务过载。另一方面,请求的 process time 增加到一定程度,当前服务的资源也会逐渐耗尽,最终反应在 queue time 的增加上。
253+
> 基础服务层大多是计算密集型服务,CPU 利用率等不完全反应程序的负载,服务过载可能是 GPU 负载过高。 使用请求在队列中的平均等待时间(“queue time”)来计算服务的负载。之所以不选择请求的平均处理时间(“process time”),是为了去除下游服务调用的影响。有时 process time 的增加并不代表当前服务过载了,而是请求依赖的下游服务过载。另一方面,请求的 process time 增加到一定程度,当前服务的资源也会逐渐耗尽,最终反应在 queue time 的增加上。
254254
255255
我们可以看下图,当我们整个 CPU 或者是 GPU 整体的负载较高的时候,它的排队时间就会去无限长。所以这里给我们一种启发的机制,也就是说我们设置一个最长的队列等待时间。因为刚才也说了,在整个微服务的框架下,我们一定要干的一件事情就是一定要有超时的机制,因为没有超时的机制最终可能导致整个系统都被焊住。所以我们这里针对于这个 Queue Time 设置一个 Timeout 的话,那就可以去保证我们这些计算密集能服务在它的排队时间,等到一定时间的时候我们就立即丢弃请求。
256256

content/en/docs/hertz/tutorials/basic-feature/context/response.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,14 @@ Use RequestContext.Response.Header to obtain the ResponseHeader object, this obj
375375
| `func (h *ResponseHeader) DelClientCookieBytes(key []byte)` | Remove the cookie from the client |
376376
| `func (h *ResponseHeader) SetConnectionClose(close bool)` | Set the `Connection: close` flag in the response header |
377377
| `func (h *ResponseHeader) ConnectionClose() bool` | Determine if Connection: close is included |
378-
| `func (h *ResponseHeader) ContentEncoding() []byte` | Obtion Content-Encoding |
378+
| `func (h *ResponseHeader) ContentEncoding() []byte` | Option Content-Encoding |
379379
| `func (h *ResponseHeader) SetContentEncoding(contentEncoding string)` | Set Content-Encoding |
380380
| `func (h *ResponseHeader) SetContentEncodingBytes(contentEncoding []byte)` | Set Content-Encoding |
381381
| `func (h *ResponseHeader) SetCanonical(key, value []byte)` | Set the Header key value, assuming that the key is in canonical form |
382382
| `func (h *ResponseHeader) Server() []byte` | Return the value with key `Server` in the header |
383383
| `func (h *ResponseHeader) SetServerBytes(server []byte)` | Set the key in the header to the value of Server |
384384
| `func (h *ResponseHeader) MustSkipContentLength() bool` | Determine if there is a response body (according to the HTTP/1.1 protocol, there is no response body when the response status codes are 1xx, 204, or 304) |
385-
| `func (h *ResponseHeader) StatusCode() int` | Obtion StatusCode |
385+
| `func (h *ResponseHeader) StatusCode() int` | Option StatusCode |
386386
| `func (h *ResponseHeader) SetStatusCode(statusCode int)` | Set StatusCode |
387387
| `func (h *ResponseHeader) Len() int` | Return the number of headers |
388388
| `func (h *ResponseHeader) DisableNormalizing()` | Disable the normalization of header name (capitalize the first letter and the first letter after the Em dash) |

content/en/docs/hertz/tutorials/third-party/middleware/casbin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ middleware provide methods that perform authentication operation.
174174
method parameter format is as follows:
175175

176176
```go
177-
func (m *Middleware) exampleMiddlwareMethod(expression string, opts ...Option) app.HandlerFunc
177+
func (m *Middleware) exampleMiddlewareMethod(expression string, opts ...Option) app.HandlerFunc
178178
```
179179

180180
it contains **expression** and **opts** two params.

content/en/docs/hertz/tutorials/third-party/service_discovery/etcd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func main() {
279279
if err != nil {
280280
panic(err)
281281
}
282-
r, err := etcd.NewEtcdResovler([]string{"127.0.0.1:2379"},
282+
r, err := etcd.NewEtcdResolver([]string{"127.0.0.1:2379"},
283283
etcd.WithAuthOpt("root","123456"),
284284
)
285285
if err != nil {

content/en/docs/hertz/tutorials/third-party/service_discovery/redis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Sample code:
6565

6666
```go
6767
func main() {
68-
r := redis.NewRedisRegistry("127.0.0.1:6379", redis.WithRereshInterval(5))
68+
r := redis.NewRedisRegistry("127.0.0.1:6379", redis.WithRefreshInterval(5))
6969
// ...
7070
h := server.Default(
7171
server.WithHostPorts(addr),

content/en/docs/hertz/tutorials/third-party/service_discovery/servicecomb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func main() {
353353

354354
### NewSCResolver
355355

356-
`NewSCReslover` uses service-comb to create a new service discovery center. It needs to pass in a custom client. The configuration of the service discovery center can be customized.
356+
`NewSCResolver` uses service-comb to create a new service discovery center. It needs to pass in a custom client. The configuration of the service discovery center can be customized.
357357

358358
Function signature:
359359

0 commit comments

Comments
 (0)