chore: os.SEEK_END has been deprecated since Go 1.7 (#198)
This commit is contained in:
parent
fd0398188f
commit
c85e62b46a
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ var apiLogHandler = func(path string) gin.HandlerFunc {
|
||||||
}
|
}
|
||||||
|
|
||||||
max := math.Max(float64(-fi.Size()), -1024*8*8)
|
max := math.Max(float64(-fi.Size()), -1024*8*8)
|
||||||
_, err = f.Seek(int64(max), os.SEEK_END)
|
_, err = f.Seek(int64(max), io.SeekEnd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
ctx.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue