Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Froelich committed Feb 11, 2017
1 parent c2a655b commit 49e1810
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions protocol/msgpack/unaggregated_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ func (it *unaggregatedIterator) decodeMetric(objType objectType) {
it.setErr(fmt.Errorf("unrecognized metric with policies type %v", objType))
return
}

// set VersionedPolicies to uninitialiezd
it.versionedPolicies = policy.UninitializedVersionedPolicies
}

Expand All @@ -159,24 +157,17 @@ func (it *unaggregatedIterator) decodeMetricWithPolicies(objType objectType) {
}

switch objType {
case counterType, counterWithPoliciesType:
case counterWithPoliciesType:
it.decodeCounter()
case batchTimerType, batchTimerWithPoliciesType:
case batchTimerWithPoliciesType:
it.decodeBatchTimer()
case gaugeType, gaugeWithPoliciesType:
case gaugeWithPoliciesType:
it.decodeGauge()
default:
it.setErr(fmt.Errorf("unrecognized metric with policies type %v", objType))
return
}

switch objType {
case counterWithPoliciesType, batchTimerWithPoliciesType, gaugeWithPoliciesType:
it.decodeVersionedPolicies()
default:
it.versionedPolicies = policy.UninitializedVersionedPolicies
}

it.decodeVersionedPolicies()
it.skip(numActualFields - numExpectedFields)
}

Expand Down

0 comments on commit 49e1810

Please sign in to comment.