Implement Equaler
This commit is contained in:
parent
75a4a61254
commit
92eeb7828b
12 changed files with 560 additions and 31 deletions
|
|
@ -54,10 +54,10 @@ func (rt1 *RateLimit) Equal(rt2 *RateLimit) bool {
|
|||
if rt1 == nil || rt2 == nil {
|
||||
return false
|
||||
}
|
||||
if (&rt1.Connections).Equal(&rt2.Connections) {
|
||||
if !(&rt1.Connections).Equal(&rt2.Connections) {
|
||||
return false
|
||||
}
|
||||
if (&rt1.RPS).Equal(&rt2.RPS) {
|
||||
if !(&rt1.RPS).Equal(&rt2.RPS) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue