mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-29 21:31:02 +00:00
removed debug statements from websocket
This commit is contained in:
parent
61a3536122
commit
ff82ed2454
1 changed files with 0 additions and 2 deletions
|
@ -66,7 +66,6 @@ func (c *Channel) start() {
|
||||||
case sub := <-c.unsubscribe:
|
case sub := <-c.unsubscribe:
|
||||||
delete(c.subscriptions, sub)
|
delete(c.subscriptions, sub)
|
||||||
close(sub.send)
|
close(sub.send)
|
||||||
log.Println("usubscribed to subscription")
|
|
||||||
|
|
||||||
case sub := <-c.subscribe:
|
case sub := <-c.subscribe:
|
||||||
c.subscriptions[sub] = true
|
c.subscriptions[sub] = true
|
||||||
|
@ -118,7 +117,6 @@ func replay(s *Subscription, history []interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Channel) stop() {
|
func (c *Channel) stop() {
|
||||||
log.Println("subscription stopped")
|
|
||||||
for sub := range c.subscriptions {
|
for sub := range c.subscriptions {
|
||||||
sub.Close()
|
sub.Close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue