From 5c459416b1c4f8726ed950d7ec0a540744f7f8b7 Mon Sep 17 00:00:00 2001 From: nxshock Date: Wed, 16 Feb 2022 17:45:46 +0500 Subject: [PATCH] Remove useless flush --- zkv.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 }