Skip to content

Commit

Permalink
comments fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Golev committed Mar 12, 2020
1 parent fac3c87 commit a261c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dkron/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,12 @@ func (s *Store) Shutdown() error {
return s.db.Close()
}

// Snapshot stub for Raft
// Snapshot creates a backup of the data stored in BuntDB
func (s *Store) Snapshot(w io.WriteCloser) error {
return s.db.Save(w)
}

// Restore stub for Raft
// Restore load data created with backup in to Bunt
func (s *Store) Restore(r io.ReadCloser) error {
return s.db.Load(r)
}
Expand Down

0 comments on commit a261c8e

Please sign in to comment.