chore: update interface to type as we're not implementing it

This commit is contained in:
Danish Arora 2025-11-26 21:25:53 -05:00
parent a3202b58dd
commit 4757322489
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import _ from "lodash";
import { ChannelId, ContentMessage, isContentMessage } from "./message.js";
import { type ChannelId, ContentMessage, isContentMessage } from "./message.js";
import { PersistentStorage } from "./persistent_storage.js";
export const DEFAULT_MAX_LENGTH = 10_000;
@ -48,10 +48,10 @@ export interface ILocalHistory {
): number;
}
export interface MemLocalHistoryOptions {
export type MemLocalHistoryOptions = {
storage?: ChannelId | PersistentStorage;
maxSize?: number;
}
};
export class MemLocalHistory implements ILocalHistory {
private items: ContentMessage[] = [];

View File

@ -23,6 +23,8 @@ import {
} from "./message.js";
import { RepairConfig, RepairManager } from "./repair/repair.js";
export type { ILocalHistory };
export const DEFAULT_BLOOM_FILTER_OPTIONS = {
capacity: 10000,
errorRate: 0.001

View File

@ -1,8 +1,8 @@
import { Logger } from "@waku/utils";
import type { ILocalHistory } from "../mem_local_history.js";
import type { HistoryEntry, MessageId } from "../message.js";
import { Message } from "../message.js";
import type { ILocalHistory } from "../message_channel.js";
import { IncomingRepairBuffer, OutgoingRepairBuffer } from "./buffers.js";
import {