1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

Merge pull request #2386 from fbcbarbosa/patch-1

Fix EventStreamSSE Memory Leak
This commit is contained in:
Brad Rydzewski 2018-03-30 09:39:41 -07:00 committed by GitHub
commit c78ce27d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ func EventStreamSSE(c *gin.Context) {
go func() {
// TODO remove this from global config
Config.Services.Pubsub.Subscribe(c, "topic/events", func(m pubsub.Message) {
Config.Services.Pubsub.Subscribe(ctx, "topic/events", func(m pubsub.Message) {
name := m.Labels["repo"]
priv := m.Labels["private"]
if repo[name] || priv == "false" {