Skip to content

Commit

Permalink
chore: add a comment to the recover behavior of the curp db
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
  • Loading branch information
bsbds committed Jul 29, 2024
1 parent 3157abf commit fe71e78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/curp/src/server/storage/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ impl<C: Command> StorageApi for DB<C> {

impl<C> DB<C> {
/// Create a new CURP `DB`
///
/// WARN: The `recover` method must be called before any call to `put_log_entries`.
///
/// # Errors
/// Will return `StorageError` if failed to open the storage
#[inline]
Expand Down

0 comments on commit fe71e78

Please sign in to comment.