Skip to content

Commit 89e9874

Browse files
committed
Tie to both contexts
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 5000997 commit 89e9874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/http/middleware/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ func (re *RequestExtractor) SetOpenAIRequest(ctx *fiber.Ctx) error {
161161
correlationID := ctx.Get("X-Correlation-ID", uuid.New().String())
162162
ctx.Set("X-Correlation-ID", correlationID)
163163

164-
//c1, cancel := context.WithCancel(re.applicationConfig.Context)
165164
c1, cancel := context.WithCancel(ctx.Context())
165+
166166
// Add the correlation ID to the new context
167167
ctxWithCorrelationID := context.WithValue(c1, CorrelationIDKey, correlationID)
168168

0 commit comments

Comments
 (0)