Skip to content

Commit b526dd4

Browse files
committed
renamed node._nodeGossipKeysTaskList to node.taskGenerateGossipKeys
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 9513b0c commit b526dd4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/node.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export class NodeCommand extends BaseCommand {
330330
* @private
331331
*/
332332
// TODO: move to KeyManager and remove List2 functionality
333-
_nodeGossipKeysTaskList (keyFormat, nodeIds, keysDir, curDate = new Date(), allNodeIds = null) {
333+
taskGenerateGossipKeys (keyFormat, nodeIds, keysDir, curDate = new Date(), allNodeIds = null) {
334334
allNodeIds = allNodeIds || nodeIds
335335
if (!Array.isArray(nodeIds) || !nodeIds.every((nodeId) => typeof nodeId === 'string')) {
336336
throw new IllegalArgumentError('nodeIds must be an array of strings')
@@ -765,7 +765,7 @@ export class NodeCommand extends BaseCommand {
765765
task: async (ctx, parentTask) => {
766766
const config = /** @type {NodeSetupConfigClass} **/ ctx.config
767767

768-
const subTasks = self._nodeGossipKeysTaskList(config.keyFormat, config.nodeIds, config.keysDir, config.curDate)
768+
const subTasks = self.taskGenerateGossipKeys(config.keyFormat, config.nodeIds, config.keysDir, config.curDate)
769769
// set up the sub-tasks
770770
return parentTask.newListr(subTasks, {
771771
concurrent: false,
@@ -1141,7 +1141,7 @@ export class NodeCommand extends BaseCommand {
11411141
title: 'Generate gossip keys',
11421142
task: async (ctx, parentTask) => {
11431143
const config = ctx.config
1144-
const subTasks = self._nodeGossipKeysTaskList(config.keyFormat, config.nodeIds, config.keysDir, config.curDate)
1144+
const subTasks = self.taskGenerateGossipKeys(config.keyFormat, config.nodeIds, config.keysDir, config.curDate)
11451145
// set up the sub-tasks
11461146
return parentTask.newListr(subTasks, {
11471147
concurrent: false,
@@ -1605,7 +1605,7 @@ export class NodeCommand extends BaseCommand {
16051605
title: 'Generate Gossip key',
16061606
task: async (ctx, parentTask) => {
16071607
const config = /** @type {NodeAddConfigClass} **/ ctx.config
1608-
const subTasks = self._nodeGossipKeysTaskList(config.keyFormat, [config.nodeId], config.keysDir, config.curDate, config.allNodeIds)
1608+
const subTasks = self.taskGenerateGossipKeys(config.keyFormat, [config.nodeId], config.keysDir, config.curDate, config.allNodeIds)
16091609
// set up the sub-tasks
16101610
return parentTask.newListr(subTasks, {
16111611
concurrent: false,

0 commit comments

Comments
 (0)