Skip to content

Commit

Permalink
feat: disable rarible and x2y2 for goerli
Browse files Browse the repository at this point in the history
  • Loading branch information
ipeleg committed Oct 26, 2023
1 parent 161ebed commit 2e14e16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/jobs/rarible-sync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { acquireLock, redis } from "../../common/redis";
import { config } from "../../config";

if (config.doRealtimeWork) {
if (_.indexOf([1, 5], config.chainId) !== -1) {
if (_.indexOf([1], config.chainId) !== -1) {
cron.schedule("*/5 * * * * *", async () => {
const lockAcquired = await acquireLock("rarible-sync-lock", 60 * 5);
if (lockAcquired) {
Expand Down
4 changes: 2 additions & 2 deletions src/jobs/x2y2-sync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { config } from "../../config";

if (config.doRealtimeWork) {
cron.schedule("*/5 * * * * *", async () => {
if ([1, 5].includes(config.chainId)) {
if ([1].includes(config.chainId)) {
const lockAcquired = await acquireLock("x2y2-sync-lock", 60 * 5);
if (lockAcquired) {
const cacheKey = "x2y2-sync-cursor";
Expand All @@ -31,7 +31,7 @@ if (config.doRealtimeWork) {

cron.schedule("*/5 * * * * *", async () => {
// Only sync offers on mainnet
if ([1, 5].includes(config.chainId)) {
if ([1].includes(config.chainId)) {
const lockAcquired = await acquireLock("x2y2-sync-offers-lock", 60 * 5);
if (lockAcquired) {
const cacheKey = "x2y2-sync-offers-cursor";
Expand Down

0 comments on commit 2e14e16

Please sign in to comment.