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