Skip to content

Commit

Permalink
save file
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley committed Oct 15, 2021
1 parent e9bdd3a commit 560a00b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions balancer/grpclb/state/state.go
Expand Up @@ -36,23 +36,6 @@ type State struct {
BalancerAddresses []resolver.Address
}

// Equal satisfies attributes.Value.
func (s *State) Equal(o interface{}) bool {
os, ok := o.(*State)
if !ok {
return false
}
if len(os.BalancerAddresses) != len(s.BalancerAddresses) {
return false
}
for i, a := range s.BalancerAddresses {
if !a.Equal(&os.BalancerAddresses[i]) {
return false
}
}
return true
}

// Set returns a copy of the provided state with attributes containing s. s's
// data should not be mutated after calling Set.
func Set(state resolver.State, s *State) resolver.State {
Expand Down

0 comments on commit 560a00b

Please sign in to comment.