mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-05 13:47:10 +02:00
chore: fix some minor issues in comments
Signed-off-by: socialsister <seekseat@qq.com>
This commit is contained in:
parent
a9438f020d
commit
869c946370
@ -254,7 +254,7 @@ func (a *collectResultAppender) String() string {
|
||||
}
|
||||
|
||||
// protoMarshalDelimited marshals a MetricFamily into a delimited
|
||||
// Prometheus proto exposition format bytes (known as 'encoding=delimited`)
|
||||
// Prometheus proto exposition format bytes (known as `encoding=delimited`)
|
||||
//
|
||||
// See also https://eli.thegreenplace.net/2011/08/02/length-prefix-framing-for-protocol-buffers
|
||||
func protoMarshalDelimited(t *testing.T, mf *dto.MetricFamily) []byte {
|
||||
|
@ -2148,7 +2148,7 @@ func TestDB_LabelNames(t *testing.T) {
|
||||
sampleLabels1 [][2]string // For checking head and disk separately.
|
||||
// To test Head+Disk, sampleLabels2 should have
|
||||
// at least 1 unique label name which is not in sampleLabels1.
|
||||
sampleLabels2 [][2]string // // For checking head and disk together.
|
||||
sampleLabels2 [][2]string // For checking head and disk together.
|
||||
exp1 []string // after adding sampleLabels1.
|
||||
exp2 []string // after adding sampleLabels1 and sampleLabels2.
|
||||
}{
|
||||
@ -9414,7 +9414,7 @@ func TestGenerateCompactionDelay(t *testing.T) {
|
||||
type blockedResponseRecorder struct {
|
||||
r *httptest.ResponseRecorder
|
||||
|
||||
// writeblocked is used to block writing until the test wants it to resume.
|
||||
// writeBlocked is used to block writing until the test wants it to resume.
|
||||
writeBlocked chan struct{}
|
||||
// writeStarted is closed by blockedResponseRecorder to signal that writing has started.
|
||||
writeStarted chan struct{}
|
||||
|
Loading…
Reference in New Issue
Block a user