Skip to content

Commit

Permalink
refactor: remove LockRequest types
Browse files Browse the repository at this point in the history
Signed-off-by: Phoeniix Zhao <Phoenix500526@163.com>
  • Loading branch information
Phoenix500526 committed May 22, 2024
1 parent 6035513 commit 575dff0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 79 deletions.
3 changes: 3 additions & 0 deletions crates/xline-client/src/clients/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub struct Session {
impl Session {
/// Creates a new session.
#[inline]
#[must_use]
pub fn new(client: LockClient) -> Self {
Self {
client,
Expand Down Expand Up @@ -159,6 +160,7 @@ impl AsyncDrop for XutexGuard {
impl Xutex {
/// Create an Xutex
#[inline]
#[must_use]
pub fn new(session: Session, prefix: &str) -> Self {
Self {
session,
Expand All @@ -171,6 +173,7 @@ impl Xutex {

/// Get the key of the Xutex
#[inline]
#[must_use]
pub fn key(&self) -> &str {
self.key.as_str()
}
Expand Down
77 changes: 0 additions & 77 deletions crates/xline-client/src/types/lock.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/xline-client/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ pub mod cluster;
pub mod kv;
/// Lease type definitions
pub mod lease;
/// Lock type definitions.
pub mod lock;
/// Maintenance type definitions.
pub mod maintenance;
/// Watch type definitions.
Expand Down

0 comments on commit 575dff0

Please sign in to comment.