From 20696dd8410f28e6c05afdff40d7bd96cb90d124 Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Tue, 7 Apr 2015 10:48:27 +0200 Subject: [PATCH] Fix text/bench_test.go --- text/bench_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/text/bench_test.go b/text/bench_test.go index df887e0..a97409e 100644 --- a/text/bench_test.go +++ b/text/bench_test.go @@ -21,7 +21,7 @@ import ( "testing" dto "github.com/prometheus/client_model/go" - "github.com/matttproud/golang_protobuf_extensions/ext" + "github.com/matttproud/golang_protobuf_extensions/pbutil" ) // Benchmarks to show how much penalty text format parsing actually inflicts. @@ -101,7 +101,7 @@ func BenchmarkParseProto(b *testing.B) { in := bytes.NewReader(data) for { family.Reset() - if _, err := ext.ReadDelimited(in, family); err != nil { + if _, err := pbutil.ReadDelimited(in, family); err != nil { if err == io.EOF { break } @@ -129,7 +129,7 @@ func BenchmarkParseProtoGzip(b *testing.B) { } for { family.Reset() - if _, err := ext.ReadDelimited(in, family); err != nil { + if _, err := pbutil.ReadDelimited(in, family); err != nil { if err == io.EOF { break } @@ -156,7 +156,7 @@ func BenchmarkParseProtoMap(b *testing.B) { in := bytes.NewReader(data) for { family := &dto.MetricFamily{} - if _, err := ext.ReadDelimited(in, family); err != nil { + if _, err := pbutil.ReadDelimited(in, family); err != nil { if err == io.EOF { break }