mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-02 11:06:14 +00:00
fix: type err
This commit is contained in:
parent
aa060a93da
commit
8a15d2e863
1 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
use fxhash::FxHashMap;
|
||||
use loro_core::{id::ClientID, version::VersionVector};
|
||||
use loro_core::{
|
||||
id::{ClientID, Counter},
|
||||
version::VersionVector,
|
||||
};
|
||||
use rle::RleVec;
|
||||
|
||||
use crate::raw_change::{ChangeData, ChangeHash};
|
||||
|
@ -72,9 +75,9 @@ impl RawStore {
|
|||
}
|
||||
|
||||
pub fn version_vector(&self) -> VersionVector {
|
||||
let mut version_vector = FxHashMap::default();
|
||||
let mut version_vector = VersionVector::new();
|
||||
for (client_id, changes) in &self.changes {
|
||||
version_vector.insert(*client_id, changes.len() as u32);
|
||||
version_vector.insert(*client_id, changes.len() as Counter);
|
||||
}
|
||||
|
||||
version_vector
|
||||
|
|
Loading…
Reference in a new issue