We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 160c680 commit 6a07f45Copy full SHA for 6a07f45
packages/core/src/lib/connection_manager.ts
@@ -116,7 +116,11 @@ export class ConnectionManager
116
...options
117
};
118
119
- this.keepAliveManager = new KeepAliveManager(keepAliveOptions, relay);
+ this.keepAliveManager = KeepAliveManager.createInstance(
120
+ this.libp2p.services.ping,
121
+ keepAliveOptions,
122
+ relay
123
+ );
124
125
this.run()
126
.then(() => log(`Connection Manager is now running`))
@@ -340,7 +344,7 @@ export class ConnectionManager
340
344
void (async () => {
341
345
const peerId = evt.detail;
342
346
343
- this.keepAliveManager.start(peerId, this.libp2p.services.ping);
347
+ this.keepAliveManager.start(peerId);
348
349
const isBootstrap = (await this.getTagNamesForPeer(peerId)).includes(
350
Tags.BOOTSTRAP
0 commit comments