File tree Expand file tree Collapse file tree
apps/ensindexer/src/lib/indexing-engines Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ function buildEventTypeId(eventName: EventNames): EventTypeId {
127127 }
128128}
129129
130- let indexingOnchainEventsPromise : Promise < void > | null = null ;
130+ let initIndexingOnchainEventsPromise : Promise < void > | null = null ;
131131
132132/**
133133 * Execute any necessary preconditions before running an event handler
@@ -154,12 +154,12 @@ async function eventHandlerPreconditions(eventType: EventTypeId): Promise<void>
154154 }
155155
156156 case EventTypeIds . OnchainEvent : {
157- if ( indexingOnchainEventsPromise === null ) {
157+ if ( initIndexingOnchainEventsPromise === null ) {
158158 // We need to work around the Ponder limitation for importing modules,
159159 // since Ponder would not allow us to use static imports for modules
160160 // that internally rely on `ponder:api`. Using dynamic imports solves
161161 // this issue.
162- indexingOnchainEventsPromise = import ( "./init-indexing-onchain-events" ) . then (
162+ initIndexingOnchainEventsPromise = import ( "./init-indexing-onchain-events" ) . then (
163163 ( { initIndexingOnchainEvents } ) =>
164164 // Init the indexing of "onchain" events just once in order to
165165 // optimize the indexing "hot path", since these events are much
@@ -168,7 +168,7 @@ async function eventHandlerPreconditions(eventType: EventTypeId): Promise<void>
168168 ) ;
169169 }
170170
171- return await indexingOnchainEventsPromise ;
171+ return await initIndexingOnchainEventsPromise ;
172172 }
173173 }
174174}
You can’t perform that action at this time.
0 commit comments