We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83abea9 commit f7b5bb1Copy full SHA for f7b5bb1
apps/price_pusher/src/injective/injective.ts
@@ -214,10 +214,13 @@ export class InjectivePricePusher implements IPricePusher {
214
if (priceIds.length !== pubTimesToPush.length)
215
throw new Error("Invalid arguments");
216
217
- const priceIdChunks = splitArrayToChunks({
218
- array: priceIds,
219
- chunkSize: this.chainConfig.priceIdsProcessChunkSize,
220
- });
+ const priceIdChunks =
+ this.chainConfig.priceIdsProcessChunkSize === -1
+ ? [priceIds]
+ : splitArrayToChunks({
221
+ array: priceIds,
222
+ chunkSize: this.chainConfig.priceIdsProcessChunkSize,
223
+ });
224
225
for (const [chunkIndex, priceIdChunk] of priceIdChunks.entries()) {
226
await this.updatePriceFeedChunk(priceIdChunk, chunkIndex);
0 commit comments