Skip to content

Commit

Permalink
chore: show config
Browse files Browse the repository at this point in the history
  • Loading branch information
meomeocoj committed Jul 15, 2024
1 parent 09649d1 commit 5859c3a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/orchestrator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,10 @@ import { createTonToCwRelayerWithConfig } from "@oraichain/tonbridge-relayer-to-
import { createCwToTonRelayerWithConfig } from "@oraichain/tonbridge-relayer-to-ton";

import { loadConfig } from "./config";
import { ConnectionOptions, Queue } from "bullmq";
dotenv.config();
const config = loadConfig();
const connection: ConnectionOptions = {
host: config.tonToCw.redisHost,
port: config.tonToCw.redisPort,
retryStrategy: function (times: number) {
return Math.max(Math.min(Math.exp(times), 20000), 1000);
},
};

console.log({ config });
const tonQueue = new Queue("ton", { connection });

(async () => {
try {
Expand Down

0 comments on commit 5859c3a

Please sign in to comment.