File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,11 @@ use crate::proto::MetricFamily;
1616/// An interface for encoding metric families into an underlying wire protocol.
1717pub trait Encoder {
1818 /// `encode` converts a slice of MetricFamily proto messages into target
19- /// format and writes the resulting lines to `writer`. It returns the number
20- /// of bytes written and any error encountered. This function does not
21- /// perform checks on the content of the metric and label names,
22- /// i.e. invalid metric or label names will result in invalid text format
19+ /// format and writes the resulting lines to `writer`. This function does not
20+ /// perform checks on the content of the metrics and label names,
21+ /// i.e. invalid metrics or label names will result in invalid text format
2322 /// output.
24- fn encode < W : Write > ( & self , _ : & [ MetricFamily ] , _ : & mut W ) -> Result < ( ) > ;
23+ fn encode < W : Write > ( & self , mfs : & [ MetricFamily ] , writer : & mut W ) -> Result < ( ) > ;
2524
2625 /// `format_type` returns target format.
2726 fn format_type ( & self ) -> & str ;
You can’t perform that action at this time.
0 commit comments