Skip to content

Commit

Permalink
common,cli: actions fix, typo fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerner committed Jan 13, 2025
1 parent a4857b4 commit 60bbc8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/indexer-cli/src/commands/indexer/actions/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ${chalk.bold(
${chalk.dim('Options:')}
-h, --help Show usage informatio
-h, --help Show usage information
-n, --network <STRING> [Required] The protocol network for this action (mainnet, arbitrum-one, sepolia, arbitrum-sepolia)
-o, --output table|json|yaml Choose the output format: table (default), JSON, or YAML
-s, --source <STRING> Specify the source of the action decision
Expand Down
4 changes: 3 additions & 1 deletion packages/indexer-common/src/indexer-management/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ export class ActionManager {
try {
this.executeBatchActionsPromise = this.executeApprovedActionsInner(network)
updatedActions = await this.executeBatchActionsPromise
} catch (error) {
this.logger.error(`Failed to execute batch of approved actions -> ${error}`)
} finally {
this.executeBatchActionsPromise = undefined
}
Expand Down Expand Up @@ -340,7 +342,7 @@ export class ActionManager {
}
// mark all approved actions as PENDING, this serves as a lock on other processing of them
await this.markActions(approvedActions, transaction, ActionStatus.PENDING)
return prioritizedActions
return approvedActions
},
)

Expand Down

0 comments on commit 60bbc8a

Please sign in to comment.