mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
replaced deprecated os.SEEK_END with op.SeekEnd
This commit is contained in:
parent
f39f3d73c7
commit
8868a8db64
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue