File tree Expand file tree Collapse file tree
en/docs/hertz/tutorials/basic-feature
zh/docs/hertz/tutorials/basic-feature Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ func main() {
167167Note: 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 ...
171171main.go:17: [Info] run shutdown hook
172172engine.go:276: [Info] HERTZ: Execute OnShutdownHooks timeout: error=context deadline exceeded
173173```
Original file line number Diff line number Diff 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 ...
131131main.go:22: [Info] run the third shutdown hook
132132main.go:16: [Info] run the first shutdown hook
133133main.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 ...
173173main.go:17: [Info] run shutdown hook
174174engine.go:276: [Info] HERTZ: Execute OnShutdownHooks timeout: error=context deadline exceeded
175175```
You can’t perform that action at this time.
0 commit comments