From 9e81f9daa4af9802088530a35a72814172430a36 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 21 Sep 2018 09:40:30 -0400 Subject: Refactor Wait() to not require a timeout We added a timeout for convenience, but most invocations don't care about it. Refactor it into WaitWithTimeout() and add a Wait() that doesn't require a timeout and uses the default. Signed-off-by: Matthew Heon Closes: #1527 Approved by: mheon --- pkg/varlinkapi/containers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/varlinkapi/containers.go b/pkg/varlinkapi/containers.go index de9c23034..f517e9b6e 100644 --- a/pkg/varlinkapi/containers.go +++ b/pkg/varlinkapi/containers.go @@ -341,7 +341,7 @@ func (i *LibpodAPI) WaitContainer(call iopodman.VarlinkCall, name string) error if err != nil { return call.ReplyContainerNotFound(name) } - exitCode, err := ctr.Wait(libpod.WaitTimeout) + exitCode, err := ctr.Wait() if err != nil { return call.ReplyErrorOccurred(err.Error()) } -- cgit v1.2.3-54-g00ecf