container: Don't call runtime state on every container on list
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
parent
2bdcd460bb
commit
8f735a581d
1 changed files with 0 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue