From e19a094030e685190d3c5d3526984ddb4a56a44a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Tesa=C5=99?= Date: Fri, 27 Oct 2023 13:59:32 +0200 Subject: [PATCH] Rename startUpdateFeedsLoops --- src/update-feeds/update-feeds.test.ts | 8 ++++---- src/update-feeds/update-feeds.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/update-feeds/update-feeds.test.ts b/src/update-feeds/update-feeds.test.ts index c44f3512..36c049f0 100644 --- a/src/update-feeds/update-feeds.test.ts +++ b/src/update-feeds/update-feeds.test.ts @@ -5,9 +5,9 @@ import * as stateModule from '../state'; import * as utilsModule from '../utils'; import * as contractMockModule from './temporary-contract-mock'; -import { runUpdateFeed, startUpdateFeedsLoops } from './update-feeds'; +import { runUpdateFeed, startUpdateFeedLoops } from './update-feeds'; -describe(startUpdateFeedsLoops.name, () => { +describe(startUpdateFeedLoops.name, () => { it('starts staggered update loops for a chain', async () => { jest.spyOn(stateModule, 'getState').mockReturnValue( allowPartial({ @@ -30,7 +30,7 @@ describe(startUpdateFeedsLoops.name, () => { }) as any); jest.spyOn(logger, 'debug'); - await startUpdateFeedsLoops(); + await startUpdateFeedLoops(); // Expect the intervals to be called with the correct stagger time. expect(setInterval).toHaveBeenCalledTimes(2); @@ -80,7 +80,7 @@ describe(startUpdateFeedsLoops.name, () => { }) as any); jest.spyOn(logger, 'debug'); - await startUpdateFeedsLoops(); + await startUpdateFeedLoops(); // Expect the intervals to be called with the correct stagger time. expect(setInterval).toHaveBeenCalledTimes(2); diff --git a/src/update-feeds/update-feeds.ts b/src/update-feeds/update-feeds.ts index e23fbf4f..ae90a93a 100644 --- a/src/update-feeds/update-feeds.ts +++ b/src/update-feeds/update-feeds.ts @@ -8,7 +8,7 @@ import { isFulfilled, sleep } from '../utils'; import { type ActiveDapisBatch, getStaticActiveDapis } from './temporary-contract-mock'; -export const startUpdateFeedsLoops = async () => { +export const startUpdateFeedLoops = async () => { const state = getState(); const { config: { chains },