Fix renamed library

ext was renamed to pbutil on golang_protobuf_extensions. See d23aa0353c

Thanks to @brian-brazil for pointing the way.
This commit is contained in:
Rafael dos Santos Silva 2015-04-06 16:56:31 -03:00
parent 3657dc8002
commit 658aca471a
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import (
"io"
"github.com/golang/protobuf/proto"
"github.com/matttproud/golang_protobuf_extensions/ext"
"github.com/matttproud/golang_protobuf_extensions/pbutil"
dto "github.com/prometheus/client_model/go"
)
@ -27,7 +27,7 @@ import (
// protobuf format and returns the number of bytes written and any error
// encountered.
func WriteProtoDelimited(w io.Writer, p *dto.MetricFamily) (int, error) {
return ext.WriteDelimited(w, p)
return pbutil.WriteDelimited(w, p)
}
// WriteProtoText writes the MetricFamily to the writer in text format and