Skip to content

Commit 4ad1815

Browse files
DaMandal0rianclaude
andcommitted
fix: apply prettier formatting to resolve CI formatting check
- Fixed line wrapping for long async function calls - Applied consistent indentation and spacing - Ensures CI formatting validation passes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5a0455b commit 4ad1815

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

packages/indexer-agent/src/agent-optimized.ts

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ export class Agent {
445445
async () => {
446446
if (PERFORMANCE_CONFIG.PARALLEL_NETWORK_QUERIES) {
447447
// Fetch all network deployments in parallel
448-
const networkDeployments = await this.multiNetworks.map(async ({ network }: NetworkAndOperator) => {
448+
const networkDeployments = await this.multiNetworks.map(
449+
async ({ network }: NetworkAndOperator) => {
449450
const networkId = network.specification.networkIdentifier
450451
const loader = this.dataLoader.get(networkId)
451452

@@ -463,7 +464,8 @@ export class Agent {
463464
deployments:
464465
await network.networkMonitor.subgraphDeployments(),
465466
}
466-
})
467+
},
468+
)
467469

468470
const deploymentMap: NetworkMapped<SubgraphDeployment[]> = {}
469471
for (const result of Object.values(networkDeployments)) {
@@ -941,16 +943,17 @@ export class Agent {
941943
return join({ networkDeployments, indexingRules }).tryMap(
942944
async ({ networkDeployments, indexingRules }) => {
943945
const decisionsEntries = await Promise.all(
944-
Object.entries(this.multiNetworks.zip(indexingRules, networkDeployments)).map(
945-
async ([networkId, [rules, deployments]]) => {
946-
const decisions = rules.length === 0
946+
Object.entries(
947+
this.multiNetworks.zip(indexingRules, networkDeployments),
948+
).map(async ([networkId, [rules, deployments]]) => {
949+
const decisions =
950+
rules.length === 0
947951
? []
948952
: await evaluateDeployments(this.logger, deployments, rules)
949-
return [networkId, decisions]
950-
}
951-
)
953+
return [networkId, decisions]
954+
}),
952955
)
953-
956+
954957
const decisions = Object.fromEntries(decisionsEntries)
955958

956959
return uniqueDeployments([
@@ -975,16 +978,17 @@ export class Agent {
975978
return join({ networkDeployments, indexingRules }).tryMap(
976979
async ({ networkDeployments, indexingRules }) => {
977980
const decisionsEntries = await Promise.all(
978-
Object.entries(this.multiNetworks.zip(indexingRules, networkDeployments)).map(
979-
async ([networkId, [rules, deployments]]) => {
980-
const decisions = rules.length === 0
981+
Object.entries(
982+
this.multiNetworks.zip(indexingRules, networkDeployments),
983+
).map(async ([networkId, [rules, deployments]]) => {
984+
const decisions =
985+
rules.length === 0
981986
? []
982987
: await evaluateDeployments(this.logger, deployments, rules)
983-
return [networkId, decisions]
984-
}
985-
)
988+
return [networkId, decisions]
989+
}),
986990
)
987-
991+
988992
return Object.fromEntries(decisionsEntries)
989993
},
990994
{

0 commit comments

Comments
 (0)