From 99318b08946b79326006d4661367812bcc838c80 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 29 Mar 2019 12:59:05 -0400 Subject: Remove wait event It's not necessary to log an event for a read-only operation like wait. Signed-off-by: Matthew Heon --- libpod/container_api.go | 1 - libpod/events/events.go | 4 ---- 2 files changed, 5 deletions(-) (limited to 'libpod') diff --git a/libpod/container_api.go b/libpod/container_api.go index 96435c2ff..2a2381923 100644 --- a/libpod/container_api.go +++ b/libpod/container_api.go @@ -574,7 +574,6 @@ func (c *Container) WaitWithInterval(waitTimeout time.Duration) (int32, error) { return 0, err } exitCode := c.state.ExitCode - c.newContainerEvent(events.Wait) return exitCode, nil } diff --git a/libpod/events/events.go b/libpod/events/events.go index 7db36653e..b44ba5742 100644 --- a/libpod/events/events.go +++ b/libpod/events/events.go @@ -104,8 +104,6 @@ const ( Unpause Status = "unpause" // Untag ... Untag Status = "untag" - // Wait ... - Wait Status = "wait" ) // EventFilter for filtering events @@ -261,8 +259,6 @@ func StringToStatus(name string) (Status, error) { return Unpause, nil case Untag.String(): return Untag, nil - case Wait.String(): - return Wait, nil } return "", errors.Errorf("unknown event status %s", name) } -- cgit v1.2.3-54-g00ecf