@@ -545,7 +545,7 @@ class NodeManager {
545545 ) : AsyncGenerator < T , TReturn , TNext > {
546546 const acquire = this . acquireConnection ( nodeId , ctx ) ;
547547 const [ release , conn ] = await acquire ( ) ;
548- let caughtError ;
548+ let caughtError : Error | undefined ;
549549 try {
550550 if ( conn == null ) utils . never ( 'NodeConnection should exist' ) ;
551551 return yield * g ( conn ) ;
@@ -1608,7 +1608,7 @@ class NodeManager {
16081608 } catch {
16091609 continue ;
16101610 }
1611- // No need to check if local claims are correctly signed by an Network Authority.
1611+ // No need to check if local claims are correctly signed by a Network Authority.
16121612 if (
16131613 authorityToken . verifyWithPublicKey (
16141614 keysUtils . publicKeyFromNodeId (
@@ -1687,7 +1687,7 @@ class NodeManager {
16871687 ) ;
16881688 }
16891689
1690- // Need to await node connection verification, if fail , need to reject connection.
1690+ // Need to await node connection verification, if failed , need to reject connection.
16911691
16921692 // When adding a node we need to handle 3 cases
16931693 // 1. The node already exists. We need to update it's last updated field
@@ -1949,7 +1949,7 @@ class NodeManager {
19491949 }
19501950
19511951 protected async setupGCTask ( bucketIndex : number ) {
1952- // Check and start a ' garbageCollect` bucket task
1952+ // Check and start a ` garbageCollect` bucket task
19531953 let scheduled : boolean = false ;
19541954 for await ( const task of this . taskManager . getTasks ( 'asc' , true , [
19551955 this . tasksPath ,
@@ -2206,7 +2206,7 @@ class NodeManager {
22062206 *
22072207 * From the spec:
22082208 * To join the network, a node u must have a contact to an already participating node w. u inserts w into the
2209- * appropriate k-bucket. u then performs a node lookup for its own node ID. Finally, u refreshes all kbuckets further
2209+ * appropriate k-bucket. u then performs a node lookup for its own node ID. Finally, u refreshes all k-buckets further
22102210 * away than its closest neighbor. During the refreshes, u both populates its own k-buckets and inserts itself into
22112211 * other nodes’ k-buckets as necessary.
22122212 *
0 commit comments