mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-08 16:53:10 +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.outgoingBuffer = [];
|
||||||
this.possibleAcks = new Map();
|
this.possibleAcks = new Map();
|
||||||
this.incomingBuffer = [];
|
this.incomingBuffer = [];
|
||||||
const resolvedLocalHistory =
|
this.localHistory =
|
||||||
localHistory ?? new PersistentHistory({ channelId: this.channelId });
|
localHistory ?? new PersistentHistory({ channelId: this.channelId });
|
||||||
this.localHistory = resolvedLocalHistory;
|
|
||||||
this.causalHistorySize =
|
this.causalHistorySize =
|
||||||
options.causalHistorySize ?? DEFAULT_CAUSAL_HISTORY_SIZE;
|
options.causalHistorySize ?? DEFAULT_CAUSAL_HISTORY_SIZE;
|
||||||
// TODO: this should be determined based on the bloom filter parameters and number of hashes
|
// TODO: this should be determined based on the bloom filter parameters and number of hashes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user