This commit is contained in:
Rizky 2024-02-11 20:57:10 +07:00
parent e22fcb8015
commit 485c218f44
1 changed files with 0 additions and 4 deletions

View File

@ -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;