Removed 5 second wait in snapshot persistence method

This commit is contained in:
Kelvin Clement Mwinuka
2024-01-27 01:47:58 +08:00
parent 7e59de20a2
commit 06822f122f

View File

@@ -4,7 +4,6 @@ import (
"encoding/json" "encoding/json"
"github.com/echovault/echovault/src/utils" "github.com/echovault/echovault/src/utils"
"github.com/hashicorp/raft" "github.com/hashicorp/raft"
"time"
) )
type SnapshotOpts struct { type SnapshotOpts struct {
@@ -40,8 +39,6 @@ func (s *Snapshot) Persist(sink raft.SnapshotSink) error {
return err return err
} }
<-time.After(5 * time.Second)
return nil return nil
} }