Skip to content

Commit

Permalink
Merge branch 'master' into 2025-01-20-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt authored Jan 24, 2025
2 parents 768e1a3 + 8866d9e commit 45210bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ENV DOCKER_TAG=$DOCKER_CHANNEL

WORKDIR /arb-bot
ADD . .
RUN rm -rf test/*.js test/*.ts test/e2e
RUN npm install
RUN npm run build
CMD node arb-bot
Expand Down
8 changes: 1 addition & 7 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,13 +856,7 @@ export const main = async (argv: any, version?: string) => {
let ordersDidChange = false;
const results = await Promise.allSettled(
lastReadOrdersMap.map((v) =>
getOrderChanges(
v.sg,
lastReadOrdersTimestamp,
v.skip,
options.timeout,
roundSpan,
),
getOrderChanges(v.sg, lastReadOrdersTimestamp, v.skip, roundSpan),
),
);
for (let i = 0; i < results.length; i++) {
Expand Down
2 changes: 0 additions & 2 deletions src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,8 @@ export async function getOrderChanges(
subgraph: string,
startTimestamp: number,
skip: number,
timeout?: number,
span?: Span,
) {
timeout;
let skip_ = skip;
let count = 0;
const allResults: SgTx[] = [];
Expand Down

0 comments on commit 45210bf

Please sign in to comment.