From d8a0123edd1192c569789c4d88acf5f29fe78177 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:29:31 +0100 Subject: [PATCH 1/3] fix typos syncEngine.test.ts --- apps/hubble/src/network/sync/syncEngine.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/hubble/src/network/sync/syncEngine.test.ts b/apps/hubble/src/network/sync/syncEngine.test.ts index 998fd5ef9c..2b23285a65 100644 --- a/apps/hubble/src/network/sync/syncEngine.test.ts +++ b/apps/hubble/src/network/sync/syncEngine.test.ts @@ -502,13 +502,13 @@ describe("SyncEngine", () => { expect((await syncEngine.getDbStats()).numFnames).toEqual(0); }); test("removes deleted fname proofs", async () => { - const supercedingUserNameProof = Factories.UserNameProof.build({ + const supersedingUserNameProof = Factories.UserNameProof.build({ name: userNameProof.name, timestamp: userNameProof.timestamp + 10, }); expect(await syncEngine.trie.exists(SyncId.fromFName(userNameProof))).toBeFalsy(); - expect(await syncEngine.trie.exists(SyncId.fromFName(supercedingUserNameProof))).toBeFalsy(); + expect(await syncEngine.trie.exists(SyncId.fromFName(supersedingUserNameProof))).toBeFalsy(); expect((await syncEngine.getDbStats()).numFnames).toEqual(0); await engine.mergeUserNameProof(userNameProof); @@ -517,11 +517,11 @@ describe("SyncEngine", () => { expect(await syncEngine.trie.exists(SyncId.fromFName(userNameProof))).toBeTruthy(); expect((await syncEngine.getDbStats()).numFnames).toEqual(1); - await engine.mergeUserNameProof(supercedingUserNameProof); + await engine.mergeUserNameProof(supersedingUserNameProof); await sleepWhile(() => syncEngine.syncTrieQSize > 0, SLEEPWHILE_TIMEOUT); expect(await syncEngine.trie.exists(SyncId.fromFName(userNameProof))).toBeFalsy(); - expect(await syncEngine.trie.exists(SyncId.fromFName(supercedingUserNameProof))).toBeTruthy(); + expect(await syncEngine.trie.exists(SyncId.fromFName(supersedingUserNameProof))).toBeTruthy(); expect((await syncEngine.getDbStats()).numFnames).toEqual(1); }); From a0c67fce9501c06cdcd65bf17487b5ec5bc28b5c Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:30:22 +0100 Subject: [PATCH 2/3] fix typo shuttle.integration.test.ts --- packages/shuttle/src/shuttle.integration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shuttle/src/shuttle.integration.test.ts b/packages/shuttle/src/shuttle.integration.test.ts index d7a577df74..8a53ec54eb 100644 --- a/packages/shuttle/src/shuttle.integration.test.ts +++ b/packages/shuttle/src/shuttle.integration.test.ts @@ -561,7 +561,7 @@ describe("shuttle", () => { }), ); }, - getAllVerficationMessagesByFid: async ( + getAllVerificationMessagesByFid: async ( _request: FidRequest, _metadata: Metadata, _options: Partial, From 01d14b54a27f7fa23b362fc7b19ec97778097666 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:31:39 +0100 Subject: [PATCH 3/3] fix typo 11.fnameIndex.ts --- apps/hubble/src/storage/db/migrations/11.fnameIndex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hubble/src/storage/db/migrations/11.fnameIndex.ts b/apps/hubble/src/storage/db/migrations/11.fnameIndex.ts index 5a37c8a24d..034e591cac 100644 --- a/apps/hubble/src/storage/db/migrations/11.fnameIndex.ts +++ b/apps/hubble/src/storage/db/migrations/11.fnameIndex.ts @@ -8,7 +8,7 @@ import { ResultAsync } from "neverthrow"; const log = logger.child({ component: "fnameIndex" }); /** - * Up untill now, we were accidentally writing the fid index for the fname messages as Little Endian + * Up until now, we were accidentally writing the fid index for the fname messages as Little Endian * instead of Big Endian in name_registry_events.rs:make_fname_username_proof_by_fid_key. * This migration will fix that to be big endian, and also remove the little endian index keys */