defaultLeaderMetrics expects the caller to lock before setting any metrics.
| 42 | |
| 43 | // defaultLeaderMetrics expects the caller to lock before setting any metrics. |
| 44 | type defaultLeaderMetrics struct { |
| 45 | // leader's value indicates if the current process is the owner of name lease |
| 46 | leader SwitchMetric |
| 47 | } |
| 48 | |
| 49 | func (m *defaultLeaderMetrics) leaderOn(name string) { |
| 50 | if m == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected