Fix: Include forgotten LabelSet.MergeFromMetric.

This commit is contained in:
Matt T. Proud 2013-06-23 14:42:10 +02:00
parent 5cadb31d7c
commit 6da8b95237
1 changed files with 6 additions and 0 deletions

View File

@ -55,3 +55,9 @@ func (l LabelSet) String() string {
return fmt.Sprintf("{%s}", strings.Join(labelStrings, ", ")) return fmt.Sprintf("{%s}", strings.Join(labelStrings, ", "))
} }
} }
func (l LabelSet) MergeFromMetric(m Metric) {
for k, v := range m {
l[k] = v
}
}