Skip to content

Commit

Permalink
feat: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Nov 30, 2024
1 parent 6c710ef commit 3fe1bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const goravelContextKey = "goravel_contextKey"

func Background() http.Context {
ctx, _ := gin.CreateTestContext(httptest.NewRecorder())
return &Context{instance: ctx}
return NewContext(ctx)
}

var contextPool = sync.Pool{New: func() any {
Expand Down

0 comments on commit 3fe1bbd

Please sign in to comment.