Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 7c3c23a

Browse files
authored
chore: update aegir (#242)
1 parent 2d26f9b commit 7c3c23a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
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",

src/kad-dht.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/query-self.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

src/routing-table/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)