mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-25 20:15:50 +00:00
doc fixes
This commit is contained in:
parent
5fd310288c
commit
fd6712aa38
2 changed files with 3 additions and 2 deletions
|
@ -37,6 +37,7 @@
|
||||||
//! - The last [`BlockchainWriteHandle`] is dropped => writer thread exits
|
//! - The last [`BlockchainWriteHandle`] is dropped => writer thread exits
|
||||||
//!
|
//!
|
||||||
//! TODO: update this when `ConcreteEnv` is removed
|
//! TODO: update this when `ConcreteEnv` is removed
|
||||||
|
//!
|
||||||
//! Upon dropping the [`cuprate_database::ConcreteEnv`]:
|
//! Upon dropping the [`cuprate_database::ConcreteEnv`]:
|
||||||
//! - All un-processed database transactions are completed
|
//! - All un-processed database transactions are completed
|
||||||
//! - All data gets flushed to disk (caused by [`Drop::drop`] impl on `ConcreteEnv`)
|
//! - All data gets flushed to disk (caused by [`Drop::drop`] impl on `ConcreteEnv`)
|
||||||
|
|
|
@ -28,9 +28,9 @@ pub fn init_thread_pool(reader_threads: ReaderThreads) -> Arc<ThreadPool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------- ReaderThreads
|
//---------------------------------------------------------------------------------------------------- ReaderThreads
|
||||||
/// Amount of database reader threads to spawn
|
/// Amount of database reader threads to spawn.
|
||||||
///
|
///
|
||||||
/// This controls how many reader thread `service`'s
|
/// This controls how many reader threads the [`DatabaseReadService`](crate::DatabaseReadService)
|
||||||
/// thread-pool will spawn to receive and send requests/responses.
|
/// thread-pool will spawn to receive and send requests/responses.
|
||||||
///
|
///
|
||||||
/// # Invariant
|
/// # Invariant
|
||||||
|
|
Loading…
Reference in a new issue