Skip to content

Commit aa2a8d8

Browse files
thelostone-mchussedev
authored andcommitted
test
1 parent fb5ac79 commit aa2a8d8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/database/index.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ export class Database {
124124

125125
// Acquire locks for all schemas
126126
const chainDataLockId = generateLockId(this.chainDataSchemaName);
127-
const ipfsDataLockId = generateLockId(this.ipfsDataSchemaName);
128-
const priceDataLockId = generateLockId(this.priceDataSchemaName);
127+
// const ipfsDataLockId = generateLockId(this.ipfsDataSchemaName);
128+
// const priceDataLockId = generateLockId(this.priceDataSchemaName);
129129

130130
// Track acquired locks
131131
const acquiredLocks: number[] = [];
@@ -140,16 +140,16 @@ export class Database {
140140
// if (priceDataLockAcquired) acquiredLocks.push(priceDataLockId);
141141

142142
// NOTE: We are forcibly acquiring locks for IPFS and Price data schemas
143-
await forciblyAcquireLockForSchema(priceDataLockId);
144-
await forciblyAcquireLockForSchema(priceDataLockId);
145-
acquiredLocks.push(ipfsDataLockId);
146-
acquiredLocks.push(priceDataLockId);
147-
148-
// this.#logger.info(`Lock Status =>
149-
// Chain Data (${chainDataLockId}): ${chainDataLockAcquired},
150-
// IPFS Data (${ipfsDataLockId}): ${ipfsDataLockAcquired},
151-
// Price Data (${priceDataLockId}): ${priceDataLockAcquired}
152-
// `);
143+
// await forciblyAcquireLockForSchema(ipfsDataLockId);
144+
// await forciblyAcquireLockForSchema(priceDataLockId);
145+
// acquiredLocks.push(ipfsDataLockId);
146+
// acquiredLocks.push(priceDataLockId);
147+
148+
this.#logger.info(`Lock Status =>
149+
Chain Data (${chainDataLockId}): ${chainDataLockAcquired}
150+
`);
151+
// IPFS Data (${ipfsDataLockId}): ${ipfsDataLockAcquired},
152+
// Price Data (${priceDataLockId}): ${priceDataLockAcquired}
153153

154154
return {
155155
release: async () => {

0 commit comments

Comments
 (0)