Close Heartbeat Queue
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
4d81529ce2
commit
7107ad1eaa
|
@ -24,6 +24,7 @@ func (cr *heartbeat) Id() PluginID {
|
||||||
|
|
||||||
func (a heartbeat) Shutdown() {
|
func (a heartbeat) Shutdown() {
|
||||||
a.breakChan <- true
|
a.breakChan <- true
|
||||||
|
a.bus.Shutdown()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *heartbeat) run() {
|
func (a *heartbeat) run() {
|
||||||
|
@ -35,6 +36,7 @@ func (a *heartbeat) run() {
|
||||||
a.bus.Publish(event.NewEvent(event.Heartbeat, map[event.Field]string{}))
|
a.bus.Publish(event.NewEvent(event.Heartbeat, map[event.Field]string{}))
|
||||||
continue
|
continue
|
||||||
case <-a.breakChan:
|
case <-a.breakChan:
|
||||||
|
log.Debugf("shutting down heartbeat plugin")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue