MCPcopy Create free account
hub / github.com/IBM/sarama / pop

Method pop

prep_encoder.go:184–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182}
183
184func (pe *prepEncoder) pop() error {
185 in := pe.stack[len(pe.stack)-1]
186 pe.stack = pe.stack[:len(pe.stack)-1]
187 if dpe, ok := in.(dynamicPushEncoder); ok {
188 pe.length += dpe.adjustLength(pe.length)
189 }
190
191 return nil
192}
193
194// we do not record metrics during the prep encoder pass
195func (pe *prepEncoder) metricRegistry() metrics.Registry {

Callers

nothing calls this directly

Calls 1

adjustLengthMethod · 0.65

Tested by

no test coverage detected