cleanup
This commit is contained in:
@@ -13,10 +13,9 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
// Naming constants.
|
||||
const (
|
||||
MetaDirSuffix = "-litestream"
|
||||
|
||||
@@ -152,10 +151,6 @@ func readWALHeader(filename string) ([]byte, error) {
|
||||
return buf[:n], err
|
||||
}
|
||||
|
||||
func readCheckpointSeqNo(hdr []byte) uint32 {
|
||||
return binary.BigEndian.Uint32(hdr[12:])
|
||||
}
|
||||
|
||||
// readFileAt reads a slice from a file.
|
||||
func readFileAt(filename string, offset, n int64) ([]byte, error) {
|
||||
f, err := os.Open(filename)
|
||||
|
||||
Reference in New Issue
Block a user