Skip to content

Commit 8f4d48a

Browse files
committed
Revert "Remove unused MetricSet.Append() method"
This reverts commit ded4f2f. Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 60eba7b commit 8f4d48a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

container/factory.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,16 @@ func (ms MetricSet) Difference(ms1 MetricSet) MetricSet {
145145
return result
146146
}
147147

148+
func (ms MetricSet) Append(ms1 MetricSet) MetricSet {
149+
result := ms
150+
for kind := range ms1 {
151+
if !ms.Has(kind) {
152+
result.add(kind)
153+
}
154+
}
155+
return result
156+
}
157+
148158
// All registered auth provider plugins.
149159
var pluginsLock sync.Mutex
150160
var plugins = make(map[string]Plugin)

0 commit comments

Comments
 (0)