Skip to content

Commit

Permalink
Chore: remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Dec 30, 2024
1 parent 0ec5676 commit 9f2f4d3
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions examples/rocksstore/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,7 @@ impl StoreBuilder<TypeConfig, RocksLogStore<TypeConfig>, RocksStateMachine, Temp
Ok((td, log_store, sm))
}
}
/// To customize a builder:
///
/// ```ignore
/// use openraft::testing::StoreBuilder;
/// use crate::ClientRequest;
/// use crate::ClientResponse;
///
/// struct MemStoreBuilder {}
///
/// impl StoreBuilder<ClientRequest, ClientResponse, RocksLogStore, RocksStateMachine> for MemStoreBuilder {
/// async fn build(&self) -> _ {
/// // ...
/// }
/// }
/// #[test]
/// pub fn test_mem_store() -> anyhow::Result<()> {
/// let rt = YourRuntime::new();
/// rt.block_on(Suite::test_all(MemStoreBuilder {}));
/// }
/// ```

#[tokio::test]
pub async fn test_rocks_store() -> Result<(), StorageError<TypeConfig>> {
Suite::test_all(RocksBuilder {}).await?;
Expand Down

0 comments on commit 9f2f4d3

Please sign in to comment.