minor stuff

This commit is contained in:
Ladd 2025-01-02 21:26:13 -06:00
parent f1fcd97fe2
commit b5e1acf4e3
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ export abstract class Collection<View> {
abstract initializeView(): void;
abstract resolve(id: string): ResolvedViewOne | undefined;
abstract resolve(id: DomainEntityID): ResolvedViewOne | undefined;
rhizomeConnect(rhizomeNode: RhizomeNode) {
this.rhizomeNode = rhizomeNode;
@ -36,7 +36,6 @@ export abstract class Collection<View> {
this.eventStream.emit("update", res);
});
// TODO: Fix this
rhizomeNode.httpServer.httpApi.serveCollection<View>(this);
debug(`[${this.rhizomeNode.config.peerId}]`, `Connected ${this.name} to rhizome`);

View File

@ -17,7 +17,7 @@ type PointerV1 = {
export type Scalar = string | number | null;
export type Reference = {
[key: PropertyID]: DomainEntityID
[key: DomainEntityID]: PropertyID
};
export type PointersV2 = {

View File

@ -23,6 +23,7 @@ export abstract class Lossy<Accumulator, Result> {
this.lossless.eventStream.on("updated", (id, deltaIds) => {
debug(`[${this.lossless.rhizomeNode.config.peerId}] entity ${id} updated, deltaIds:`,
JSON.stringify(deltaIds));
this.ingestUpdate(id, deltaIds);
});
}