This repository was archived by the owner on Jul 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8484 },
8585 "devDependencies" : {
8686 "@types/debug" : " ^4.1.7" ,
87- "aegir" : " ^35 .0.1" ,
87+ "aegir" : " ^36 .0.1" ,
8888 "async-iterator-all" : " ^1.0.0" ,
8989 "datastore-level" : " ^7.0.1" ,
9090 "delay" : " ^5.0.0" ,
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ class KadDHT extends EventEmitter {
303303 if ( ! has ) {
304304 await this . _routingTable . add ( peerData . id )
305305 }
306- } catch ( err ) {
306+ } catch ( /** @type { any } */ err ) {
307307 this . _log . error ( 'Could not add %p to routing table' , peerData . id , err )
308308 }
309309 }
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class QuerySelf extends EventEmitter {
6767 } ) , this . _count ) )
6868
6969 this . _log ( 'query ran successfully - found %d peers' , found )
70- } catch ( err ) {
70+ } catch ( /** @type { any } */ err ) {
7171 this . _log ( 'query error' , err )
7272 } finally {
7373 this . _timeoutId = setTimeout ( this . _querySelf . bind ( this ) , this . _interval )
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ class RoutingTable {
8989 } )
9090 await stream . close ( )
9191 responded ++
92- } catch ( err ) {
92+ } catch ( /** @type { any } */ err ) {
9393 this . _log . error ( 'Could not ping peer %p' , oldContact . peer , err )
9494 this . _log ( `Evicting old contact after ping failed ${ oldContact . peer } ` )
9595 this . kb . remove ( oldContact . id )
@@ -105,7 +105,7 @@ class RoutingTable {
105105 this . _log ( `Adding new contact ${ newContact . peer } ` )
106106 this . kb . add ( newContact )
107107 }
108- } catch ( err ) {
108+ } catch ( /** @type { any } */ err ) {
109109 this . _log . error ( 'Could not process k-bucket ping event' , err )
110110 }
111111 } )
You can’t perform that action at this time.
0 commit comments