Skip to content

Commit

Permalink
fix: do not cancel goroutine context used after http response closes
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Sep 12, 2024
1 parent eb0d870 commit 7c98676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/webhook/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ func PostWebhook(c *gin.Context) {

// publish the build to the queue
go build.Enqueue(
ctx,
context.WithoutCancel(ctx),
queue.FromGinContext(c),
database.FromContext(c),
item,
Expand Down

0 comments on commit 7c98676

Please sign in to comment.