chore: fix warning - rm a redundant field

This commit is contained in:
Zixuan Chen 2024-08-19 11:39:35 +08:00
parent ea5f91f6a6
commit 5f70310681
No known key found for this signature in database

View file

@ -241,7 +241,6 @@ trait HistoryCacheTrait {
#[derive(Debug, Clone)]
pub(crate) struct GroupedMapOpInfo<T = Option<LoroValue>> {
pub(crate) value: T,
pub(crate) counter: Counter,
pub(crate) lamport: Lamport,
pub(crate) peer: PeerID,
}
@ -343,7 +342,6 @@ impl MapHistoryCache {
self.keys.get_value(entry.key as usize).unwrap().clone(),
GroupedMapOpInfo {
value: map.value.clone(),
counter: id.counter,
lamport: entry.lamport,
peer: entry.peer,
},
@ -477,7 +475,6 @@ impl MovableListHistoryCache {
.unwrap();
Some(GroupedMapOpInfo {
value,
counter: id.counter,
lamport: key.lamport,
peer: id.peer,
})
@ -496,7 +493,6 @@ impl MovableListHistoryCache {
InnerContent::List(InnerListOp::Set { value, .. }) => {
Some(GroupedMapOpInfo {
value: value.clone(),
counter: id.counter,
lamport,
peer: id.peer,
})