Skip to content

Commit

Permalink
chore: removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Nov 27, 2024
1 parent 6095f8e commit 68a006a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions plugins/gcp/fix_plugin_gcp/resources/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def query_for(
)
else:
log.info(f"[global|{start_time}|{duration_str(end_time - start_time)}] Query for {len(queries)} metrics.")
# lookup = {q.metric_id: q for q in queries}
# result: Dict[GcpMonitoringQuery, GcpMonitoringMetricData] = {}

futures = []

api_spec = GcpApiSpec(
Expand Down Expand Up @@ -98,16 +97,7 @@ def query_for(
query,
)
futures.append(future)
# Retrieve results from submitted queries and populate the result dictionary
# for future in as_completed(futures):
# try:
# metric_query_result: List[Tuple[str, GcpMonitoringMetricData]] = future.result()
# for metric_id, metric in metric_query_result:
# if metric is not None and metric_id is not None:
# result[lookup[metric_id]] = metric
# except Exception as e:
# log.warning(f"An error occurred while processing a metric query: {e}")
# raise e

return futures

@staticmethod
Expand Down

0 comments on commit 68a006a

Please sign in to comment.