Commit b84eb63
feat(adaptors): upgrade flock to 4.1.0 and use inclusiveVersion for sync check (#45)
- Update @loro-dev/flock peerDependency to ^4.1.0 in loro-adaptors
- Update @loro-dev/flock devDependency to ^4.1.0 in loro-websocket
- Use flock.version() for encoding (sending to server)
- Use flock.inclusiveVersion() for waitForReachingServerVersion check
The inclusiveVersion() includes all peers ever seen, making it correct
for checking if we have received all data from the server, while
version() only includes peers with current entries, which is correct
for incremental sync.
Co-authored-by: lody <agent@lody.ai>1 parent 858a1e9 commit b84eb63
4 files changed
Lines changed: 78 additions & 78 deletions
File tree
- packages
- loro-adaptors
- src
- loro-websocket
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments