From 549e81ff3bb4f4d19ea671fc552e12594b1368d0 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 13 Mar 2019 11:51:59 +0100 Subject: events: use os.SEEK_END instead of its value Signed-off-by: Giuseppe Scrivano --- libpod/events.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpod/events.go') diff --git a/libpod/events.go b/libpod/events.go index 879aeb6c5..f09529a05 100644 --- a/libpod/events.go +++ b/libpod/events.go @@ -1,6 +1,8 @@ package libpod import ( + "os" + "github.com/containers/libpod/libpod/events" "github.com/hpcloud/tail" "github.com/pkg/errors" @@ -85,7 +87,7 @@ func (r *Runtime) Events(fromStart, stream bool, options []events.EventFilter, e func (r *Runtime) getTail(fromStart, stream bool) (*tail.Tail, error) { reopen := true - seek := tail.SeekInfo{Offset: 0, Whence: 2} + seek := tail.SeekInfo{Offset: 0, Whence: os.SEEK_END} if fromStart || !stream { seek.Whence = 0 reopen = false -- cgit v1.2.3-54-g00ecf