Skip to content

Commit 4869b78

Browse files
committed
Cleanup
1 parent 93d9757 commit 4869b78

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/common/atlas/cluster.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface Cluster {
2929
state?: "IDLE" | "CREATING" | "UPDATING" | "DELETING" | "REPAIRING";
3030
mongoDBVersion?: string;
3131
connectionString?: string;
32-
processIds?: string[];
32+
processIds?: Array<string>;
3333
}
3434

3535
export function formatFlexCluster(cluster: FlexClusterDescription20241113): Cluster {
@@ -126,7 +126,7 @@ export async function getProcessIdsFromCluster(
126126
apiClient: ApiClient,
127127
projectId: string,
128128
clusterName: string
129-
): Promise<string[]> {
129+
): Promise<Array<string>> {
130130
try {
131131
const cluster = await inspectCluster(apiClient, projectId, clusterName);
132132
return cluster.processIds || [];

src/common/atlas/performanceAdvisorUtils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export async function getSlowQueries(
118118
return { slowQueryLogs: [] };
119119
}
120120

121-
// Make parallel API calls for each process ID
122121
const slowQueryPromises = processIds.map((processId) =>
123122
apiClient.listSlowQueries({
124123
params: {
@@ -136,7 +135,6 @@ export async function getSlowQueries(
136135

137136
const responses = await Promise.all(slowQueryPromises);
138137

139-
// Combine all slow query logs from all process IDs
140138
const allSlowQueryLogs = responses.reduce((acc, response) => {
141139
return acc.concat(response.slowQueries ?? []);
142140
}, [] as Array<SlowQueryLog>);

0 commit comments

Comments
 (0)