Fix minor "deferred" typo

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
Tianon Gravi 2016-04-02 10:28:05 -07:00
parent cb3c208a4d
commit 13f03c3f7a
5 changed files with 5 additions and 5 deletions

View file

@ -49,5 +49,5 @@ func (s *Supervisor) start(t *StartTask) error {
s.startTasks <- task
ContainerCreateTimer.UpdateSince(start)
return errDeferedResponse
return errDeferredResponse
}

View file

@ -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")
)

View file

@ -29,5 +29,5 @@ func (s *Supervisor) stats(t *StatsTask) error {
t.Stat <- s
ContainerStatsTimer.UpdateSince(start)
}()
return errDeferedResponse
return errDeferredResponse
}

View file

@ -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())
}

View file

@ -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())
}