Commit 29d7771
committed
prometheus_text_format: Fix argument order for
The formatting function should take the state as the first argument and
new data as the second. See `format/1` which passes in the trailing
linefeed as the second argument. This doesn't make much difference when
calling `format/1` because the swapped arguments only caused the metrics
to be concatenated in reverse. But this fix is important for using
`format_into/3` correctly, for example with `cowboy_req:stream_body/3`.format_into/3 fun1 parent 566e985 commit 29d7771
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments