wip fix
This commit is contained in:
parent
e22fcb8015
commit
485c218f44
|
|
@ -100,10 +100,6 @@ export class Diff<T> {
|
|||
|
||||
async applyPatch(_patch: Uint8Array) {
|
||||
const patch = packr.unpack(_patch) as PATCH_RESULT;
|
||||
console.log(
|
||||
patch.mode,
|
||||
patch.mode === "new" ? patch.data.length : patch.diff.length
|
||||
);
|
||||
if (patch.mode === "new") {
|
||||
this.ts = patch.ts;
|
||||
if (patch.data) this._data = patch.data;
|
||||
|
|
|
|||
Loading…
Reference in New Issue