mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
refactor: simplify localHistory initialization by removing intermediate constant
This commit is contained in:
parent
8428957508
commit
81e9070ea8
@ -117,9 +117,8 @@ export class MessageChannel extends TypedEventEmitter<MessageChannelEvents> {
|
||||
this.outgoingBuffer = [];
|
||||
this.possibleAcks = new Map();
|
||||
this.incomingBuffer = [];
|
||||
const resolvedLocalHistory =
|
||||
this.localHistory =
|
||||
localHistory ?? new PersistentHistory({ channelId: this.channelId });
|
||||
this.localHistory = resolvedLocalHistory;
|
||||
this.causalHistorySize =
|
||||
options.causalHistorySize ?? DEFAULT_CAUSAL_HISTORY_SIZE;
|
||||
// TODO: this should be determined based on the bloom filter parameters and number of hashes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user