diff --git a/src/lib/data_structures/publication_tree.ts b/src/lib/data_structures/publication_tree.ts index f67aa03..9c5cb64 100644 --- a/src/lib/data_structures/publication_tree.ts +++ b/src/lib/data_structures/publication_tree.ts @@ -1,6 +1,6 @@ import type NDK from "@nostr-dev-kit/ndk"; -import type { NDKEvent, NDKFilter } from "@nostr-dev-kit/ndk"; -import { Lazy } from "./lazy"; +import type { NDKEvent } from "@nostr-dev-kit/ndk"; +import { Lazy } from "./lazy.ts"; enum PublicationTreeNodeType { Root, @@ -337,7 +337,7 @@ export class PublicationTree implements AsyncIterable { return null; } - async #addNode(address: string, parentNode: PublicationTreeNode): Promise { + #addNode(address: string, parentNode: PublicationTreeNode) { const lazyNode = new Lazy(() => this.#resolveNode(address, parentNode)); parentNode.children!.push(lazyNode); this.#nodes.set(address, lazyNode);