tiny refactor

This commit is contained in:
Andre Staltz 2023-09-14 13:55:27 +03:00
parent e129a47912
commit bd575b5f40
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 5 additions and 5 deletions

View File

@ -86,12 +86,12 @@ module.exports = {
* @param {{ path: string; keypair: Keypair; }} config * @param {{ path: string; keypair: Keypair; }} config
*/ */
init(peer, config) { init(peer, config) {
/** @type {Map<string, Goal>} */ // Constants:
const goals = new Map() const EMPTY_RANGE = /** @type {Range} */ ([1, 0])
const listen = Obz()
/** @type {Range} */ // State:
const EMPTY_RANGE = [1, 0] const goals = /** @type {Map<string, Goal>} */ (new Map())
const listen = Obz()
/** /**
* @private * @private