File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,11 @@ class Rendezvous {
116
116
117
117
const registerTasks = [ ]
118
118
119
- const taskFn = async ( /** @type {Multiaddr } **/ m ) => {
119
+ /**
120
+ * @param {Multiaddr } m
121
+ * @returns {Promise<number> }
122
+ */
123
+ const taskFn = async ( m ) => {
120
124
const connection = await this . _libp2p . dial ( m )
121
125
const { stream } = await connection . newStream ( PROTOCOL_MULTICODEC )
122
126
@@ -183,7 +187,11 @@ class Rendezvous {
183
187
} )
184
188
185
189
const unregisterTasks = [ ]
186
- const taskFn = async ( /** @type {Multiaddr } **/ m ) => {
190
+ /**
191
+ * @param {Multiaddr } m
192
+ * @returns {Promise<void> }
193
+ */
194
+ const taskFn = async ( m ) => {
187
195
const connection = await this . _libp2p . dial ( m )
188
196
const { stream } = await connection . newStream ( PROTOCOL_MULTICODEC )
189
197
You can’t perform that action at this time.
0 commit comments