File tree 2 files changed +12
-11
lines changed
2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 18
18
"coverage" : " aegir coverage"
19
19
},
20
20
"devDependencies" : {
21
- "aegir" : " ^21.4.5 " ,
21
+ "aegir" : " ^21.8.1 " ,
22
22
"chai" : " ^4.2.0" ,
23
23
"cids" : " ^0.8.0" ,
24
24
"go-ipfs-dep" : " 0.4.23-3" ,
25
- "ipfs-utils" : " ^1 .2.1 " ,
26
- "ipfsd-ctl" : " ^3.0 .0" ,
25
+ "ipfs-utils" : " ^2 .2.0 " ,
26
+ "ipfsd-ctl" : " ^3.1 .0" ,
27
27
"it-drain" : " ^1.0.0" ,
28
28
"it-last" : " ^1.0.1" ,
29
- "peer-id" : " ^0.13.7 "
29
+ "peer-id" : " ^0.13.11 "
30
30
},
31
31
"dependencies" : {
32
32
"debug" : " ^4.1.1" ,
33
- "ipfs-http-client" : " ^43 .0.1 " ,
33
+ "ipfs-http-client" : " ^44 .0.0 " ,
34
34
"it-all" : " ^1.0.0" ,
35
- "multiaddr" : " ^7.2.1 " ,
35
+ "multiaddr" : " ^7.4.3 " ,
36
36
"p-defer" : " ^3.0.0" ,
37
- "p-queue" : " ^6.2.1 " ,
38
- "peer-info" : " ^0.17.1 "
37
+ "p-queue" : " ^6.3.0 " ,
38
+ "peer-info" : " ^0.17.5 "
39
39
},
40
40
"contributors" : [
41
41
" Jacob Heun <jacobheun@gmail.com>" ,
Original file line number Diff line number Diff line change @@ -83,14 +83,15 @@ class DelegatedContentRouting {
83
83
84
84
for await ( const { id, addrs } of this . dht . findProvs ( key , {
85
85
numProviders : options . numProviders ,
86
- searchParams : {
87
- timeout : `${ options . timeout } ms` // The api requires specification of the time unit (s/ms)
88
- }
86
+ timeout : options . timeout
89
87
} ) ) {
90
88
const peerInfo = new PeerInfo ( PeerId . createFromCID ( id ) )
91
89
addrs . forEach ( addr => peerInfo . multiaddrs . add ( addr ) )
92
90
yield peerInfo
93
91
}
92
+ } catch ( err ) {
93
+ log . error ( 'findProviders errored:' , err )
94
+ throw err
94
95
} finally {
95
96
onFinish . resolve ( )
96
97
log ( 'findProviders finished:' , keyString )
You can’t perform that action at this time.
0 commit comments