mirror of https://github.com/tikv/client-rust.git
parent
53e7a290d9
commit
49f5dba6ad
|
@ -5,6 +5,7 @@
|
|||
|
||||
pub use protos::*;
|
||||
|
||||
#[allow(clippy::doc_lazy_continuation)]
|
||||
mod protos {
|
||||
include!("generated/mod.rs");
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ const SCAN_LOCK_BATCH_SIZE: u32 = 1024;
|
|||
/// - `gc`: trigger a GC process which clears stale data in the cluster.
|
||||
/// - `current_timestamp`: get the current `Timestamp` from PD.
|
||||
/// - `snapshot`: get a [`Snapshot`] of the database at a specified timestamp.
|
||||
/// A `Snapshot` is a read-only transaction.
|
||||
/// A `Snapshot` is a read-only transaction.
|
||||
///
|
||||
/// The returned results of transactional requests are [`Future`](std::future::Future)s that must be
|
||||
/// awaited to execute.
|
||||
|
|
|
@ -904,7 +904,6 @@ impl Merge<kvrpcpb::UnsafeDestroyRangeResponse> for Collect {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg_attr(feature = "protobuf-codec", allow(clippy::useless_conversion))]
|
||||
mod tests {
|
||||
use crate::common::Error::PessimisticLockError;
|
||||
use crate::common::Error::ResolveLockError;
|
||||
|
|
Loading…
Reference in New Issue