summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi/events.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/varlinkapi/events.go')
-rw-r--r--pkg/varlinkapi/events.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/varlinkapi/events.go b/pkg/varlinkapi/events.go
index 33938f08b..910b64a57 100644
--- a/pkg/varlinkapi/events.go
+++ b/pkg/varlinkapi/events.go
@@ -3,10 +3,11 @@
package varlinkapi
import (
+ "context"
"time"
- "github.com/containers/libpod/libpod/events"
- iopodman "github.com/containers/libpod/pkg/varlink"
+ "github.com/containers/libpod/v2/libpod/events"
+ iopodman "github.com/containers/libpod/v2/pkg/varlink"
)
// GetEvents is a remote endpoint to get events from the event log
@@ -27,7 +28,7 @@ func (i *VarlinkAPI) GetEvents(call iopodman.VarlinkCall, filter []string, since
eventChannel := make(chan *events.Event)
go func() {
readOpts := events.ReadOptions{FromStart: fromStart, Stream: stream, Filters: filter, EventChannel: eventChannel}
- eventsError = i.Runtime.Events(readOpts)
+ eventsError = i.Runtime.Events(context.Background(), readOpts)
}()
if eventsError != nil {
return call.ReplyErrorOccurred(eventsError.Error())