Skip to content

Commit 148bafc

Browse files
committed
fix(cmd/web): 修正语法错误
1 parent b1fc5b8 commit 148bafc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/app_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func TestSignalHUP(t *testing.T) {
4444
a.ErrorIs(cmd.Exec([]string{"app", "-a=serve"}), http.ErrServerClosed)
4545
exit <- struct{}{}
4646
}()
47-
time.Sleep(500 * time.Millisecond) // 等待 go func 启动完成
47+
time.Sleep(1000 * time.Millisecond) // 等待 go func 启动完成
4848
a.NotNil(cmd.app).
4949
NotNil(cmd.app.srv)
5050

cmd/web/internal/restdoc/logger/logger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ import (
1414
)
1515

1616
type Logger struct {
17-
logs *logs.Logs
17+
logs logs.Logs
1818
p *message.Printer
1919
count int
2020
}
2121

22-
func New(l *logs.Logs, p *message.Printer) *Logger {
22+
func New(l logs.Logs, p *message.Printer) *Logger {
2323
return &Logger{
2424
logs: l,
2525
p: p,

web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
// Version 当前框架的版本
19-
const Version = "0.79.0"
19+
const Version = "0.79.1"
2020

2121
// 预定义的 Problem ID 值
2222
const (

0 commit comments

Comments
 (0)