Skip to content

Commit 53008ea

Browse files
committed
log count
1 parent e941817 commit 53008ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cli/src/mirror/mirror.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export async function mirror({
5656
chainId: fromChainId,
5757
});
5858

59+
let count = 0;
5960
for (const table of tables) {
6061
const logs = await pRetry(() =>
6162
getRecordsAsLogs<Table>({
@@ -70,7 +71,9 @@ export async function mirror({
7071
for (const log of logs) {
7172
plan.add("setRecord", log.args);
7273
}
74+
count += logs.length;
7375
}
76+
console.log("got", count, "total records");
7477

7578
await plan.end();
7679
}

0 commit comments

Comments
 (0)