diff --git a/zkv.go b/zkv.go index 8d977b3..7d49c2a 100644 --- a/zkv.go +++ b/zkv.go @@ -32,11 +32,7 @@ func (db *Database) Close() error { db.mu.Lock() defer db.mu.Unlock() - err := db.compressor.Flush() - if err != nil { - return err - } - err = db.compressor.Close() + err := db.compressor.Close() if err != nil { return err }