mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
chore: update interface to type as we're not implementing it
This commit is contained in:
parent
b437e19d3c
commit
af0bbf8f85
@ -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[] = [];
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user