From b7042518e55710ec0f244e8313ae5fc157bcaca2 Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Thu, 25 Feb 2016 10:14:20 -0800 Subject: [PATCH] Fix stats command not returning Signed-off-by: Kenfe-Mickael Laventure --- supervisor/stats.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/supervisor/stats.go b/supervisor/stats.go index fa68321..f7b4ee3 100644 --- a/supervisor/stats.go +++ b/supervisor/stats.go @@ -10,7 +10,6 @@ type StatsTask struct { baseTask ID string Stat chan *runtime.Stat - Err chan error } func (s *Supervisor) stats(t *StatsTask) error { @@ -23,12 +22,12 @@ func (s *Supervisor) stats(t *StatsTask) error { go func() { s, err := i.container.Stats() if err != nil { - t.Err <- err + t.ErrorCh() <- err return } - t.Err <- nil + t.ErrorCh() <- nil t.Stat <- s ContainerStatsTimer.UpdateSince(start) }() - return nil + return errDeferedResponse }