From 79def293f0a7f5b43302df634575c48a51546b57 Mon Sep 17 00:00:00 2001 From: Nicolas Carlier Date: Thu, 6 Nov 2014 16:03:23 +0000 Subject: [PATCH] fix: Fix typo. --- src/worker/dispatcher.go | 2 +- src/worker/worker.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/worker/dispatcher.go b/src/worker/dispatcher.go index c07de51..5a73123 100644 --- a/src/worker/dispatcher.go +++ b/src/worker/dispatcher.go @@ -22,7 +22,7 @@ func StartDispatcher(nworkers int) { for { select { case work := <-WorkQueue: - fmt.Println("Received work requeust") + fmt.Println("Received work request") go func() { worker := <-WorkerQueue diff --git a/src/worker/worker.go b/src/worker/worker.go index 1d66016..c8b50e3 100644 --- a/src/worker/worker.go +++ b/src/worker/worker.go @@ -42,7 +42,7 @@ func (w Worker) Start() { filename, err := RunScript(&work) if err != nil { subject := fmt.Sprintf("Webhook %s/%s FAILED.", work.Name, work.Action) - Notify(subject, err.Error(), "") + Notify(subject, err.Error(), filename) } else { subject := fmt.Sprintf("Webhook %s/%s SUCCEEDED.", work.Name, work.Action) Notify(subject, "See attachment.", filename) @@ -72,7 +72,7 @@ func Notify(subject string, text string, outfilename string) { return } if notifier == nil { - fmt.Println("Notification provideri not found.") + fmt.Println("Notification provider not found.") return }