Skip to content

Commit 9bbb3f9

Browse files
authored
docs(hertz): fix shell output in example code (#1410)
1 parent f53d819 commit 9bbb3f9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • content
    • en/docs/hertz/tutorials/basic-feature
    • zh/docs/hertz/tutorials/basic-feature

content/en/docs/hertz/tutorials/basic-feature/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func main() {
167167
Note: When terminating the service, the timeout log is printed because the hook function took more than 2 seconds to execute.
168168
169169
```shell
170-
hertz.go:77: [Info] HERTZ: Begin graceful shutdown, wait at most num=2 seconds...
170+
hertz.go:77: [Info] HERTZ: Begin graceful shutdown, wait at most 2s ...
171171
main.go:17: [Info] run shutdown hook
172172
engine.go:276: [Info] HERTZ: Execute OnShutdownHooks timeout: error=context deadline exceeded
173173
```

content/zh/docs/hertz/tutorials/basic-feature/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func main() {
127127
提示:终止服务,将在控制台**乱序**打印三个 `ShutdownHook` 函数的日志。
128128

129129
```shell
130-
hertz.go:77: [Info] HERTZ: Begin graceful shutdown, wait at most num=5 seconds...
130+
hertz.go:77: [Info] HERTZ: Begin graceful shutdown, wait at most 5s ...
131131
main.go:22: [Info] run the third shutdown hook
132132
main.go:16: [Info] run the first shutdown hook
133133
main.go:19: [Info] run the second shutdown hook
@@ -169,7 +169,7 @@ func main() {
169169
提示:终止服务时,因为钩子函数执行时间超过 2 秒,打印超时日志。
170170

171171
```shell
172-
hertz.go:77: [Info] HERTZ: Begin graceful shutdown, wait at most num=2 seconds...
172+
hertz.go:77: [Info] HERTZ: Begin graceful shutdown, wait at most 2s ...
173173
main.go:17: [Info] run shutdown hook
174174
engine.go:276: [Info] HERTZ: Execute OnShutdownHooks timeout: error=context deadline exceeded
175175
```

0 commit comments

Comments
 (0)