mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-20 19:27:06 +00:00
fix(): remove "done" statement at execution end
This commit is contained in:
parent
28288739f3
commit
57e5b79011
|
@ -5,7 +5,7 @@ import (
|
||||||
"github.com/ncarlier/webhookd/pkg/model"
|
"github.com/ncarlier/webhookd/pkg/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WorkerQueue is the gloabl queue of Workers
|
// WorkerQueue is the global queue of Workers
|
||||||
var WorkerQueue chan chan model.WorkRequest
|
var WorkerQueue chan chan model.WorkRequest
|
||||||
|
|
||||||
// WorkQueue is the global queue of work to dispatch
|
// WorkQueue is the global queue of work to dispatch
|
||||||
|
|
|
@ -49,8 +49,6 @@ func (w Worker) Start() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
metric.RequestsFailed.Add(1)
|
metric.RequestsFailed.Add(1)
|
||||||
work.MessageChan <- []byte(fmt.Sprintf("error: %s", err.Error()))
|
work.MessageChan <- []byte(fmt.Sprintf("error: %s", err.Error()))
|
||||||
} else {
|
|
||||||
work.MessageChan <- []byte("done")
|
|
||||||
}
|
}
|
||||||
// Send notification
|
// Send notification
|
||||||
notification.Notify(&work)
|
notification.Notify(&work)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user