MCPcopy
hub / github.com/grpc/grpc-go / Equal

Method Equal

balancer/rls/config.go:70–82  ·  view source on GitHub ↗
(other *lbConfig)

Source from the content-addressed store, hash-verified

68}
69
70func (lbCfg *lbConfig) Equal(other *lbConfig) bool {
71 return lbCfg.kbMap.Equal(other.kbMap) &&
72 lbCfg.lookupService == other.lookupService &&
73 lbCfg.lookupServiceTimeout == other.lookupServiceTimeout &&
74 lbCfg.maxAge == other.maxAge &&
75 lbCfg.staleAge == other.staleAge &&
76 lbCfg.cacheSizeBytes == other.cacheSizeBytes &&
77 lbCfg.defaultTarget == other.defaultTarget &&
78 lbCfg.childPolicyName == other.childPolicyName &&
79 lbCfg.childPolicyTargetField == other.childPolicyTargetField &&
80 lbCfg.controlChannelServiceConfig == other.controlChannelServiceConfig &&
81 childPolicyConfigEqual(lbCfg.childPolicyConfig, other.childPolicyConfig)
82}
83
84func childPolicyConfigEqual(a, b map[string]json.RawMessage) bool {
85 if (b == nil) != (a == nil) {

Callers

nothing calls this directly

Calls 2

childPolicyConfigEqualFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected