Skip to content

Commit

Permalink
fixup: move countInboundAction() into processActions()
Browse files Browse the repository at this point in the history
  • Loading branch information
siarhei-agoric committed Jan 28, 2025
1 parent 7ab1791 commit 6a3eeda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cosmic-swingset/src/launch-chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,6 @@ export async function launch({
// blockManagerConsole.error('Performing action', action);
let p;

countInboundAction(action.type);

switch (action.type) {
case ActionType.DELIVER_INBOUND: {
p = deliverInbound(
Expand Down Expand Up @@ -743,6 +741,7 @@ export async function launch({
for await (const { action, context } of inboundQueue.consumeAll()) {
const inboundNum = `${context.blockHeight}-${context.txHash}-${context.msgIdx}`;
inboundQueueMetrics.decStat();
countInboundAction(action.type);
await performAction(action, inboundNum);
keepGoing = await runSwingset(phase);
if (!keepGoing) {
Expand Down

0 comments on commit 6a3eeda

Please sign in to comment.