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" {