@@ -42,7 +42,7 @@ pub(crate) struct Commit {
4242 pub ( crate ) span : tracing:: Span ,
4343}
4444
45- /// Messages sent to the [`TxnManager `].
45+ /// Messages sent to the [`LifecycleHandle `].
4646pub ( crate ) enum LifecycleEvent {
4747 Begin ( Begin ) ,
4848 Abort ( Abort ) ,
@@ -99,7 +99,7 @@ pub(crate) struct RwSyncLifecycle {
9999}
100100
101101impl RwSyncLifecycle {
102- /// Creates a new [`TxnManager `], spawns a background task, returns
102+ /// Creates a new [`LifecycleHandle `], spawns a background task, returns
103103 /// a sender to communicate with it.
104104 pub ( crate ) fn spawn ( env : EnvPtr ) -> LifecycleHandle {
105105 let ( tx, rx) = sync_channel ( 0 ) ;
@@ -133,12 +133,12 @@ impl RwSyncLifecycle {
133133 sender. send ( mdbx_result ( unsafe { ffi:: mdbx_txn_commit_ex ( tx. 0 , latency. 0 ) } ) ) . unwrap ( ) ;
134134 }
135135
136- /// Spawns a new [`std::thread`] that listens to incoming [`RwSyncLifecycle::Message `] messages,
136+ /// Spawns a new [`std::thread`] that listens to incoming [`LifecycleEvent `] messages,
137137 /// executes an FFI function, and returns the result on the provided channel.
138138 ///
139- /// - [`RwSyncLifecycle::Message ::Begin`] opens a new transaction with [`ffi::mdbx_txn_begin_ex`]
140- /// - [`RwSyncLifecycle::Message ::Abort`] aborts a transaction with [`ffi::mdbx_txn_abort`]
141- /// - [`RwSyncLifecycle::Message ::Commit`] commits a transaction with [`ffi::mdbx_txn_commit_ex`]
139+ /// - [`LifecycleEvent ::Begin`] opens a new transaction with [`ffi::mdbx_txn_begin_ex`]
140+ /// - [`LifecycleEvent ::Abort`] aborts a transaction with [`ffi::mdbx_txn_abort`]
141+ /// - [`LifecycleEvent ::Commit`] commits a transaction with [`ffi::mdbx_txn_commit_ex`]
142142 fn start_message_listener ( self ) {
143143 let task = move || {
144144 loop {
0 commit comments