Don't fail when a perflib counter isn't found

This commit is contained in:
Calle Pettersson
2019-08-03 13:15:45 +02:00
parent 0ecf3cd792
commit 9308108284
4 changed files with 39 additions and 36 deletions

View File

@@ -64,7 +64,6 @@ func unmarshalObject(obj *perflib.PerfObject, vs interface{}) error {
ctr, found := counters[tag]
if !found {
log.Debugf("missing counter %q, has %v", tag, counters)
return fmt.Errorf("could not find counter %q on instance", tag)
}
if !target.Field(i).CanSet() {
return fmt.Errorf("tagged field %v cannot be written to", f)