Skip to content

Commit

Permalink
fix: request context leak
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 13, 2024
1 parent d3adee8 commit 69c2923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func New() *echo.Echo {
reqIP := c.RealIP()

c.SetRequest(c.Request().
WithContext(context.WithValue(context.Background(), logger.RequestKey, &logger.RequestTrace{
WithContext(context.WithValue(c.Request().Context(), logger.RequestKey, &logger.RequestTrace{
IP: reqIP,
ReqID: reqID,
})))
Expand Down

0 comments on commit 69c2923

Please sign in to comment.