From f6ff2e8de617f87ff21fd7946b945e9ce1900182 Mon Sep 17 00:00:00 2001 From: Madhav Bissa Date: Tue, 30 Dec 2025 02:13:56 +0000 Subject: [PATCH] fixing typos --- internal/stats/metrics_recorder_list.go | 2 +- internal/xds/xdsdepmgr/xds_dependency_manager.go | 4 ++-- internal/xds/xdsdepmgr/xds_dependency_manager_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/stats/metrics_recorder_list.go b/internal/stats/metrics_recorder_list.go index 4a9fc0127f75..4c431966fcf8 100644 --- a/internal/stats/metrics_recorder_list.go +++ b/internal/stats/metrics_recorder_list.go @@ -153,7 +153,7 @@ type asyncRecorderWrapper struct { // RecordIntAsync64Gauge records the measurement alongside labels on the int // gauge associated with the provided handle. func (w *asyncRecorderWrapper) RecordInt64AsyncGauge(handle *estats.Int64AsyncGaugeHandle, value int64, labels ...string) { - // Ensure only metrics for descriptors passed during callback registeration + // Ensure only metrics for descriptors passed during callback registration // are emitted. d := handle.Descriptor() if _, ok := w.descriptors[d]; !ok { diff --git a/internal/xds/xdsdepmgr/xds_dependency_manager.go b/internal/xds/xdsdepmgr/xds_dependency_manager.go index 266516bd27d8..c84b199e900e 100644 --- a/internal/xds/xdsdepmgr/xds_dependency_manager.go +++ b/internal/xds/xdsdepmgr/xds_dependency_manager.go @@ -301,7 +301,7 @@ func (m *DependencyManager) maybeSendUpdateLocked() { // []string: A slice of all "leaf" cluster names discovered in the // traversal starting from `clusterName`. For // non-aggregate clusters, this will contain only `clusterName`. -// error: Error that needs to be propogated up the tree (like +// error: Error that needs to be propagated up the tree (like // max depth exceeded or an error propagated from a // child cluster). func (m *DependencyManager) populateClusterConfigLocked(clusterName string, depth int, clusterConfigs map[string]*xdsresource.ClusterResult, endpointResourcesSeen, dnsResourcesSeen, clustersSeen map[string]bool) (bool, []string, error) { @@ -798,7 +798,7 @@ func (m *DependencyManager) onDNSError(resourceName string, err error) { m.maybeSendUpdateLocked() } -// RequestDNSReresolution calls all the the DNS resolver's ResolveNow. +// RequestDNSReresolution calls all the DNS resolver's ResolveNow. func (m *DependencyManager) RequestDNSReresolution(opt resolver.ResolveNowOptions) { m.mu.Lock() defer m.mu.Unlock() diff --git a/internal/xds/xdsdepmgr/xds_dependency_manager_test.go b/internal/xds/xdsdepmgr/xds_dependency_manager_test.go index 8cfd1aa924ec..31487e641e62 100644 --- a/internal/xds/xdsdepmgr/xds_dependency_manager_test.go +++ b/internal/xds/xdsdepmgr/xds_dependency_manager_test.go @@ -1425,7 +1425,7 @@ func (s) TestAggregateClusterMaxDepth(t *testing.T) { } } -// Tests the scenrio where the Endpoint watcher receives an ambient error. Tests +// Tests the scenario where the Endpoint watcher receives an ambient error. Tests // verifies that the error is stored in resolution note and the update remains // too. func (s) TestEndpointAmbientError(t *testing.T) {