@@ -329,33 +329,24 @@ export class Agent {
329
329
sequentialTimerMap (
330
330
{ logger, milliseconds : requestIntervalLarge } ,
331
331
async ( ) => {
332
- const deployments = await this . multiNetworks . map (
333
- async ( { network } ) => {
334
- if (
335
- this . deploymentManagement === DeploymentManagementMode . AUTO ||
336
- network . networkMonitor . poiDisputeMonitoringEnabled ( )
337
- ) {
338
- logger . trace ( 'Fetching active deployments' )
339
- const assignments =
340
- await this . graphNode . subgraphDeploymentsAssignments (
341
- SubgraphStatus . ACTIVE ,
342
- )
343
- return assignments . map ( assignment => assignment . id )
344
- } else {
345
- logger . info (
346
- "Skipping fetching active deployments fetch since DeploymentManagementMode = 'manual' and POI tracking is disabled" ,
347
- )
348
- return [ ]
349
- }
350
- } ,
351
- )
352
- return deployments . values
332
+ if ( this . deploymentManagement === DeploymentManagementMode . AUTO ) {
333
+ logger . debug ( 'Fetching active deployments' )
334
+ const assignments =
335
+ await this . graphNode . subgraphDeploymentsAssignments (
336
+ SubgraphStatus . ACTIVE ,
337
+ )
338
+ return assignments . map ( assignment => assignment . id )
339
+ } else {
340
+ logger . info (
341
+ "Skipping fetching active deployments fetch since DeploymentManagementMode = 'manual' and POI tracking is disabled" ,
342
+ )
343
+ return [ ]
344
+ }
353
345
} ,
354
346
{
355
347
onError : error =>
356
348
logger . warn (
357
- `Failed to obtain active deployments, trying again later` ,
358
- { error } ,
349
+ `Failed to obtain active deployments, trying again later ${ error } ` ,
359
350
) ,
360
351
} ,
361
352
)
@@ -554,7 +545,6 @@ export class Agent {
554
545
networkDeploymentAllocationDecisions,
555
546
} ) . tryMap (
556
547
async ( { indexingRules, networkDeploymentAllocationDecisions } ) => {
557
- logger . trace ( 'Resolving target deployments' )
558
548
const targetDeploymentIDs : Set < SubgraphDeploymentID > =
559
549
consolidateAllocationDecisions ( networkDeploymentAllocationDecisions )
560
550
@@ -576,8 +566,7 @@ export class Agent {
576
566
{
577
567
onError : error =>
578
568
logger . warn (
579
- `Failed to obtain target deployments, trying again later` ,
580
- { error } ,
569
+ `Failed to obtain target deployments, trying again later ${ error } ` ,
581
570
) ,
582
571
} ,
583
572
)
0 commit comments