tx: use io.SeekStart in WriteTo function

Const os.SEEK_SET is deprecated.
pull/43/head
lorneli 2017-09-11 12:53:25 +08:00
parent 4ff482b44e
commit 4ce1b5e579
1 changed files with 1 additions and 1 deletions

2
tx.go
View File

@ -345,7 +345,7 @@ func (tx *Tx) WriteTo(w io.Writer) (n int64, err error) {
}
// Move past the meta pages in the file.
if _, err := f.Seek(int64(tx.db.pageSize*2), os.SEEK_SET); err != nil {
if _, err := f.Seek(int64(tx.db.pageSize*2), io.SeekStart); err != nil {
return n, fmt.Errorf("seek: %s", err)
}