in common/common.go [4660:4684]
func (p *TThrottleQuota) Equals(other *TThrottleQuota) bool {
if p == other {
return true
} else if p == nil || other == nil {
return false
}
if len(p.ThrottleLimit) != len(other.ThrottleLimit) { return false }
for k, _tgt := range p.ThrottleLimit {
_src19 := other.ThrottleLimit[k]
if !_tgt.Equals(_src19) { return false }
}
if p.MemLimit != other.MemLimit {
if p.MemLimit == nil || other.MemLimit == nil {
return false
}
if (*p.MemLimit) != (*other.MemLimit) { return false }
}
if p.CpuLimit != other.CpuLimit {
if p.CpuLimit == nil || other.CpuLimit == nil {
return false
}
if (*p.CpuLimit) != (*other.CpuLimit) { return false }
}
return true
}