1
0
mirror of https://github.com/nxshock/zkv.git synced 2024-11-27 11:21:02 +05:00

Remove useless flush

This commit is contained in:
nxshock 2022-02-16 17:45:46 +05:00
parent 916b50decd
commit 5c459416b1

6
zkv.go
View File

@ -32,11 +32,7 @@ func (db *Database) Close() error {
db.mu.Lock() db.mu.Lock()
defer db.mu.Unlock() defer db.mu.Unlock()
err := db.compressor.Flush() err := db.compressor.Close()
if err != nil {
return err
}
err = db.compressor.Close()
if err != nil { if err != nil {
return err return err
} }