From 06822f122f93c437da28aabd28c41e89b1be3b8c Mon Sep 17 00:00:00 2001 From: Kelvin Clement Mwinuka Date: Sat, 27 Jan 2024 01:47:58 +0800 Subject: [PATCH] Removed 5 second wait in snapshot persistence method --- src/raft/fms_snapshot.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/raft/fms_snapshot.go b/src/raft/fms_snapshot.go index f92d157..4d411fe 100644 --- a/src/raft/fms_snapshot.go +++ b/src/raft/fms_snapshot.go @@ -4,7 +4,6 @@ import ( "encoding/json" "github.com/echovault/echovault/src/utils" "github.com/hashicorp/raft" - "time" ) type SnapshotOpts struct { @@ -40,8 +39,6 @@ func (s *Snapshot) Persist(sink raft.SnapshotSink) error { return err } - <-time.After(5 * time.Second) - return nil }