diff options
author | baude <bbaude@redhat.com> | 2018-10-10 12:22:35 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2018-10-23 08:26:21 -0500 |
commit | ee8f19e7be8626b17498a3c5602a7390a4d671e3 (patch) | |
tree | d9846560bf0723305600e9cf43749536c9befd14 /libpod | |
parent | 5b2478ed87eedd8178c1672a786f95a6716a8edb (diff) | |
download | podman-ee8f19e7be8626b17498a3c5602a7390a4d671e3.tar.gz podman-ee8f19e7be8626b17498a3c5602a7390a4d671e3.tar.bz2 podman-ee8f19e7be8626b17498a3c5602a7390a4d671e3.zip |
Make podman ps fast
Like Ricky Bobby, we want to go fast.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_api.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go index 93becb80d..41a131ea2 100644 --- a/libpod/container_api.go +++ b/libpod/container_api.go @@ -666,14 +666,10 @@ func (c *Container) Batch(batchFunc func(*Container) error) error { newCtr.valid = true newCtr.batched = true - - if err := batchFunc(newCtr); err != nil { - return err - } - + err := batchFunc(newCtr) newCtr.batched = false - return c.save() + return err } // Sync updates the current state of the container, checking whether its state |