Skip to content

Commit

Permalink
Update sealed.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Oct 26, 2024
1 parent 9b4aba7 commit 4724c21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sealed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,14 @@ pub trait Wal<K: ?Sized, V: ?Sized, S> {

#[inline]
fn insert_pointer(
&mut self,
&self,
ptr: <Self::Memtable as BaseTable>::Pointer,
) -> Result<(), Error<Self::Memtable>>
where
Self::Memtable: BaseTable,
<Self::Memtable as BaseTable>::Pointer: Pointer + Ord + 'static,
{
let t = self.memtable_mut();
let t = self.memtable();
if !ptr.is_removed() {
t.insert(ptr).map_err(Error::memtable)
} else {
Expand All @@ -443,7 +443,7 @@ pub trait Wal<K: ?Sized, V: ?Sized, S> {

#[inline]
fn insert_pointers(
&mut self,
&self,
mut ptrs: impl Iterator<Item = <Self::Memtable as BaseTable>::Pointer>,
) -> Result<(), Error<Self::Memtable>>
where
Expand Down Expand Up @@ -934,7 +934,7 @@ pub trait Constructable<K: ?Sized, V: ?Sized>: Sized {
return Err(Error::magic_version_mismatch());
}

let mut set = <Self::Wal as Wal<K, V, Self::Checksumer>>::Memtable::new(memtable_opts)
let set = <Self::Wal as Wal<K, V, Self::Checksumer>>::Memtable::new(memtable_opts)
.map_err(Error::memtable)?;

let mut cursor = arena.data_offset();
Expand Down

0 comments on commit 4724c21

Please sign in to comment.