Skip to content

Commit

Permalink
fix(worker): revert collection update
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemon committed Aug 2, 2023
1 parent b028d1f commit 2751047
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Models/Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { WithId } from "mongodb";
import { Network } from "../Libraries/Network";
import { mongo } from "../Services/Mongo";

export const collection = mongo.db.collection<WorkerDocument>("workers");
export const collection = mongo.db.collection<WorkerDocument>("worker");

/*
|--------------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async function start() {

const limiter = utils.promise.limiter(10);
const orderbooks = await getWorkers();
console.log(orderbooks);
for (const { address, network } of orderbooks) {
limiter.push(() => resolveOrderbook(address, network));
}
Expand Down

0 comments on commit 2751047

Please sign in to comment.