Skip to content

Commit

Permalink
remove scheduler from processor
Browse files Browse the repository at this point in the history
  • Loading branch information
ikprk committed May 31, 2024
1 parent 2178c1e commit 6ddef0e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ import { EventHandler, EventInstance, EventNames, eventConstructors } from './ut
import { assertAssignable } from './utils/misc'
import { OffchainState } from './utils/offchainState'
import { EntityManagerOverlay } from './utils/overlay'
import {
JOYSTREAM_USD_PRICE,
schedulePriceUpdate,
updateJoystreamPrice,
} from './utils/joystreamPrice'

const defaultEventOptions = {
data: {
Expand Down Expand Up @@ -378,13 +373,6 @@ processor.run(new TypeormDatabase({ isolationLevel: 'READ COMMITTED' }), async (
exportBlockNumber = await offchainState.getExportBlockNumber()
}

if (JOYSTREAM_USD_PRICE === null) {
await updateJoystreamPrice()
schedulePriceUpdate()
.then(() => undefined)
.catch(() => undefined)
}

const overlay = await EntityManagerOverlay.create(ctx.store, afterDbUpdate)

for (const block of ctx.blocks) {
Expand Down

0 comments on commit 6ddef0e

Please sign in to comment.