From 4b04286f909f1027f345d975005c3c277ef35c11 Mon Sep 17 00:00:00 2001 From: Sun Hongliang Date: Thu, 17 Mar 2016 22:20:26 +0800 Subject: [PATCH] fix typos in watchdog Signed-off-by: Sun Hongliang --- cluster/watchdog.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cluster/watchdog.go b/cluster/watchdog.go index 3ef52d7811..49ec9809d8 100644 --- a/cluster/watchdog.go +++ b/cluster/watchdog.go @@ -6,13 +6,13 @@ import ( log "github.com/Sirupsen/logrus" ) -// Watchdog listen to cluster events ans handle container rescheduling +// Watchdog listens to cluster events and handles container rescheduling type Watchdog struct { sync.Mutex cluster Cluster } -// Handle cluster callbacks +// Handle handles cluster callbacks func (w *Watchdog) Handle(e *Event) error { // Skip non-swarm events. if e.From != "swarm" { @@ -28,7 +28,7 @@ func (w *Watchdog) Handle(e *Event) error { return nil } -// Remove Duplicate containers when a node comes back +// removeDuplicateContainers removes duplicate containers when a node comes back func (w *Watchdog) removeDuplicateContainers(e *Engine) { log.Debugf("removing duplicate containers from Node %s", e.ID) @@ -53,7 +53,7 @@ func (w *Watchdog) removeDuplicateContainers(e *Engine) { } } -// Reschedule containers as soon as a node fail +// rescheduleContainers reschedules containers as soon as a node fails func (w *Watchdog) rescheduleContainers(e *Engine) { w.Lock() defer w.Unlock()