Skip to content

Commit

Permalink
Change coordinator IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed May 2, 2024
1 parent 92fd6c3 commit 9a82eec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data-fetcher-loop/data-fetcher-loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const callSignedApi = async (url: string, timeout: number): Promise<Signe
};

export const runDataFetcher = async () => {
return logger.runWithContext({ dataFetcherCoordinatorId: Date.now().toString() }, async () => {
return logger.runWithContext({ dataFetcherCoordinatorId: new Date().toISOString() }, async () => {
const state = getState();
const {
config: { signedDataFetchInterval },
Expand Down
2 changes: 1 addition & 1 deletion src/update-feeds-loops/update-feeds-loops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const readActiveDataFeedBatch = async (

export const runUpdateFeeds = async (providerName: string, chain: Chain, chainId: string) => {
await logger.runWithContext(
{ chainName: chain.alias, providerName, updateFeedsCoordinatorId: Date.now().toString() },
{ chainName: chain.alias, providerName, updateFeedsCoordinatorId: new Date().toISOString() },
async () => {
// We do not expect this function to throw, but its possible that some execution path is incorrectly handled and we
// want to process the error ourselves, for example log the error using the configured format.
Expand Down

0 comments on commit 9a82eec

Please sign in to comment.