mirror of https://github.com/harness/drone.git
commit
c78ce27d76
|
@ -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" {
|
||||||
|
|
Loading…
Reference in New Issue