mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
Make podman ps fast
Like Ricky Bobby, we want to go fast. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user