Skip to content

Commit

Permalink
Merge pull request #118 from reservoirprotocol/feat/remove-logs
Browse files Browse the repository at this point in the history
feat: remove logs
  • Loading branch information
nofir authored Dec 1, 2023
2 parents de5ab9f + cad9e6c commit 71c6e44
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/jobs/seaport-sync/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ export const fetchOrders = async (
let total = 0;

let done = false;
while (!done && (details?.maxOrders ? total < details.maxOrders : true)) {
logger.info("fetch_orders_seaport", `Seaport fetch orders. side=${side}, cursor=${cursor}`);

while (!done && (details?.maxOrders ? total < details.maxOrders : true)) {
const url = seaport.buildFetchOrdersURL({
contract: details?.contract,
side,
Expand Down Expand Up @@ -134,11 +133,6 @@ export const fetchOrders = async (
if (parsedOrders.length) {
await addToRelayOrdersQueue(parsedOrders, true);
}

logger.info(
"fetch_orders_seaport",
`Seaport - Batch done. side=${side}, cursor=${cursor} Got ${orders.length} orders`
);
} catch (error: any) {
if (error.response?.status === 429 || error.response?.status === 503) {
logger.warn(
Expand Down

0 comments on commit 71c6e44

Please sign in to comment.