Skip to content

Commit

Permalink
chore: rename destroy() to stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Sep 13, 2024
1 parent e8bec8e commit 4317569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/protocols/reliability_monitor_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ export class ReliabilityMonitorManager {

private constructor() {}

public static destroy(pubsubTopic: PubsubTopic): void {
public static stop(pubsubTopic: PubsubTopic): void {
this.receiverMonitors.delete(pubsubTopic);
delete this.senderMonitor;
}

public static destroyAll(): void {
public static stopAll(): void {
for (const [pubsubTopic, monitor] of this.receiverMonitors) {
monitor.setMaxMissedMessagesThreshold(undefined);
monitor.setMaxPingFailures(undefined);
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/waku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class WakuNode implements Waku {
}

public async stop(): Promise<void> {
ReliabilityMonitorManager.destroyAll();
ReliabilityMonitorManager.stopAll();
this.connectionManager.stop();
await this.libp2p.stop();
}
Expand Down

0 comments on commit 4317569

Please sign in to comment.