Skip to content

Commit a2d5f83

Browse files
committed
chore: fix build
1 parent d501d97 commit a2d5f83

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ class Rendezvous {
116116

117117
const registerTasks = []
118118

119-
const taskFn = async (/** @type {Multiaddr} **/ m) => {
119+
/**
120+
* @param {Multiaddr} m
121+
* @returns {Promise<number>}
122+
*/
123+
const taskFn = async (m) => {
120124
const connection = await this._libp2p.dial(m)
121125
const { stream } = await connection.newStream(PROTOCOL_MULTICODEC)
122126

@@ -183,7 +187,11 @@ class Rendezvous {
183187
})
184188

185189
const unregisterTasks = []
186-
const taskFn = async (/** @type {Multiaddr} **/ m) => {
190+
/**
191+
* @param {Multiaddr} m
192+
* @returns {Promise<void>}
193+
*/
194+
const taskFn = async (m) => {
187195
const connection = await this._libp2p.dial(m)
188196
const { stream } = await connection.newStream(PROTOCOL_MULTICODEC)
189197

0 commit comments

Comments
 (0)