We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 931b71b commit eaafd44Copy full SHA for eaafd44
src/identify/index.js
@@ -93,11 +93,10 @@ class IdentifyService {
93
* @returns {Promise<void>}
94
*/
95
async push (connections) {
96
- const signedPeerRecord = await this._getSelfPeerRecord()
97
- const listenAddrs = this._libp2p.multiaddrs.map((ma) => ma.buffer)
98
- const protocols = Array.from(this._protocols.keys())
99
-
100
const pushes = connections.map(async connection => {
+ const signedPeerRecord = await this._getSelfPeerRecord()
+ const listenAddrs = this._libp2p.multiaddrs.map((ma) => ma.buffer)
+ const protocols = Array.from(this._protocols.keys())
101
try {
102
const { stream } = await connection.newStream(MULTICODEC_IDENTIFY_PUSH)
103
0 commit comments