Skip to content

Commit

Permalink
Update cli.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Jan 17, 2025
1 parent 4c74a64 commit 74b6c9a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
getBatchEthBalance,
} from "./account";
import {
downscaleProtection,
// downscaleProtection,
prepareOrdersForRound,
getOrderbookOwnersProfileMapFromSg,
handleAddOrderbookOwnersProfileMap,
Expand Down Expand Up @@ -846,7 +846,7 @@ export const main = async (argv: any, version?: string) => {
startTime: lastReadOrdersTimestamp,
}),
);
let ordersDidChange = false;
// let ordersDidChange = false;
const results = await Promise.allSettled(
lastReadOrdersMap.map((v) =>
getOrderChanges(
Expand All @@ -861,9 +861,9 @@ export const main = async (argv: any, version?: string) => {
for (let i = 0; i < results.length; i++) {
const res = results[i];
if (res.status === "fulfilled") {
if (res.value.addOrders.length || res.value.removeOrders.length) {
ordersDidChange = true;
}
// if (res.value.addOrders.length || res.value.removeOrders.length) {
// ordersDidChange = true;
// }
lastReadOrdersMap[i].skip += res.value.count;
try {
await handleAddOrderbookOwnersProfileMap(
Expand Down

0 comments on commit 74b6c9a

Please sign in to comment.