Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
dboslee committed Aug 17, 2023
1 parent 9b86b34 commit 19e842d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/ir/xds.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ type Xds struct {
}

// Equal implements the Comparable interface used by watchable.DeepEqual to skip unnecessary updates.
func (x1 *Xds) Equal(x2 *Xds) bool {
func (x *Xds) Equal(y *Xds) bool {
// Deep copy to avoid modifying the original ordering.
x1 = x1.DeepCopy()
x1.sort()
x2 = x2.DeepCopy()
x2.sort()
return reflect.DeepEqual(x1, x2)
x = x.DeepCopy()
x.sort()
y = y.DeepCopy()
y.sort()
return reflect.DeepEqual(x, y)
}

// sort ensures the listeners are in a consistent order.
Expand Down

0 comments on commit 19e842d

Please sign in to comment.