From 13f03c3f7a9a346de7bf633b2eeaff3c64ef88a6 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Sat, 2 Apr 2016 10:28:05 -0700 Subject: [PATCH] Fix minor "deferred" typo Signed-off-by: Andrew "Tianon" Page --- supervisor/create.go | 2 +- supervisor/errors.go | 2 +- supervisor/stats.go | 2 +- supervisor/supervisor_linux.go | 2 +- supervisor/supervisor_windows.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/supervisor/create.go b/supervisor/create.go index 263721f..f173e6e 100644 --- a/supervisor/create.go +++ b/supervisor/create.go @@ -49,5 +49,5 @@ func (s *Supervisor) start(t *StartTask) error { s.startTasks <- task ContainerCreateTimer.UpdateSince(start) - return errDeferedResponse + return errDeferredResponse } diff --git a/supervisor/errors.go b/supervisor/errors.go index 7c8cf53..7e421d0 100644 --- a/supervisor/errors.go +++ b/supervisor/errors.go @@ -20,5 +20,5 @@ var ( // // TODO: we could probably do a typed error with another error channel for this to make it // less like magic - errDeferedResponse = errors.New("containerd: defered response") + errDeferredResponse = errors.New("containerd: deferred response") ) diff --git a/supervisor/stats.go b/supervisor/stats.go index f7b4ee3..00bf5f8 100644 --- a/supervisor/stats.go +++ b/supervisor/stats.go @@ -29,5 +29,5 @@ func (s *Supervisor) stats(t *StatsTask) error { t.Stat <- s ContainerStatsTimer.UpdateSince(start) }() - return errDeferedResponse + return errDeferredResponse } diff --git a/supervisor/supervisor_linux.go b/supervisor/supervisor_linux.go index 95a3776..a2dd041 100644 --- a/supervisor/supervisor_linux.go +++ b/supervisor/supervisor_linux.go @@ -32,7 +32,7 @@ func (s *Supervisor) handleTask(i Task) { default: err = ErrUnknownTask } - if err != errDeferedResponse { + if err != errDeferredResponse { i.ErrorCh() <- err close(i.ErrorCh()) } diff --git a/supervisor/supervisor_windows.go b/supervisor/supervisor_windows.go index 66c4ada..2882577 100644 --- a/supervisor/supervisor_windows.go +++ b/supervisor/supervisor_windows.go @@ -26,7 +26,7 @@ func (s *Supervisor) handleTask(i Task) { default: err = ErrUnknownTask } - if err != errDeferedResponse { + if err != errDeferredResponse { i.ErrorCh() <- err close(i.ErrorCh()) }