Function save_snapshot

Source
pub async fn save_snapshot(
    state: AppState,
    data: RefContent,
) -> Result<(), AppError>
Expand description

Saves the document by replacing the head with a new snapshot.

The snapshot at the previous head is not deleted.