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:
commit
c78ce27d76
@ -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" {
|
||||
|
Loading…
Reference in New Issue
Block a user