From 8868a8db642f59b894022642714aa49db9f3fe73 Mon Sep 17 00:00:00 2001 From: postmannen Date: Tue, 18 Apr 2023 06:29:59 +0200 Subject: [PATCH] replaced deprecated os.SEEK_END with op.SeekEnd --- requests_file_handling.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requests_file_handling.go b/requests_file_handling.go index 96995d2..496e84d 100644 --- a/requests_file_handling.go +++ b/requests_file_handling.go @@ -2,6 +2,7 @@ package steward import ( "fmt" + "io" "os" "path/filepath" @@ -157,7 +158,7 @@ func (m methodREQTailFile) handler(proc process, message Message, node string) ( outCh := make(chan []byte) t, err := tail.TailFile(fp, tail.Config{Follow: true, Location: &tail.SeekInfo{ Offset: 0, - Whence: os.SEEK_END, + Whence: io.SeekEnd, }}) if err != nil { er := fmt.Errorf("error: methodREQToTailFile: tailFile: %v", err)