mirror of https://github.com/waku-org/js-waku.git
chore: use plural english for hashmap
This commit is contained in:
parent
6e0cddf096
commit
bdd95257cc
|
@ -14,7 +14,7 @@ const log = new Logger("sdk:message_reliability_monitor");
|
||||||
const DEFAULT_MAX_MISSED_MESSAGES_THRESHOLD = 3;
|
const DEFAULT_MAX_MISSED_MESSAGES_THRESHOLD = 3;
|
||||||
|
|
||||||
export class MessageReliabilityTracker {
|
export class MessageReliabilityTracker {
|
||||||
public static receiverMonitor: Map<PubsubTopic, ReceiverReliabilityMonitor> =
|
public static receiverMonitors: Map<PubsubTopic, ReceiverReliabilityMonitor> =
|
||||||
new Map();
|
new Map();
|
||||||
|
|
||||||
public constructor() {}
|
public constructor() {}
|
||||||
|
@ -33,7 +33,7 @@ export class ReceiverReliabilityMonitor {
|
||||||
private filter: IFilterSDK,
|
private filter: IFilterSDK,
|
||||||
private subscription: ISubscriptionSDK
|
private subscription: ISubscriptionSDK
|
||||||
) {
|
) {
|
||||||
MessageReliabilityTracker.receiverMonitor.set(
|
MessageReliabilityTracker.receiverMonitors.set(
|
||||||
this.subscription.pubsubTopic,
|
this.subscription.pubsubTopic,
|
||||||
this
|
this
|
||||||
);
|
);
|
||||||
|
@ -47,7 +47,7 @@ export class ReceiverReliabilityMonitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
public destructor(): void {
|
public destructor(): void {
|
||||||
MessageReliabilityTracker.receiverMonitor.delete(
|
MessageReliabilityTracker.receiverMonitors.delete(
|
||||||
this.subscription.pubsubTopic
|
this.subscription.pubsubTopic
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue