Merge pull request #2386 from fbcbarbosa/patch-1

Fix EventStreamSSE Memory Leak
pull/2394/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func EventStreamSSE(c *gin.Context) {
go func() { go func() {
// TODO remove this from global config // 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"] name := m.Labels["repo"]
priv := m.Labels["private"] priv := m.Labels["private"]
if repo[name] || priv == "false" { if repo[name] || priv == "false" {