mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
os.SEEK_SET is deprecated,use io.SeekStart. (#10563)
This commit is contained in:
parent
b880796aef
commit
4de88e87bb
@ -39,7 +39,7 @@ func getReader(name string, offset int64, length int64) (io.ReadCloser, error) {
|
||||
offset = fi.Size() + offset
|
||||
}
|
||||
|
||||
if _, err = file.Seek(offset, os.SEEK_SET); err != nil {
|
||||
if _, err = file.Seek(offset, io.SeekStart); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ func getReader(name string, offset int64, length int64) (io.ReadCloser, error) {
|
||||
offset = fi.Size() + offset
|
||||
}
|
||||
|
||||
if _, err = file.Seek(offset, os.SEEK_SET); err != nil {
|
||||
if _, err = file.Seek(offset, io.SeekStart); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ func getReader(name string, offset int64, length int64) (io.ReadCloser, error) {
|
||||
offset = fi.Size() + offset
|
||||
}
|
||||
|
||||
if _, err = file.Seek(offset, os.SEEK_SET); err != nil {
|
||||
if _, err = file.Seek(offset, io.SeekStart); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user