From 8f735a581dfea491b6a926a7fb3315d46a9cd503 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Wed, 9 Aug 2017 14:17:33 -0400 Subject: [PATCH] container: Don't call runtime state on every container on list Signed-off-by: Mrunal Patel --- server/container_list.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/container_list.go b/server/container_list.go index 3589ffa5..a6ddd81c 100644 --- a/server/container_list.go +++ b/server/container_list.go @@ -66,10 +66,6 @@ func (s *Server) ListContainers(ctx context.Context, req *pb.ListContainersReque } for _, ctr := range ctrList { - if err := s.Runtime().UpdateStatus(ctr); err != nil { - return nil, err - } - podSandboxID := ctr.Sandbox() cState := s.Runtime().ContainerStatus(ctr) created := cState.Created.UnixNano()