From e040cf0d9a867ba42287b720c70a2c5f6a54b0a2 Mon Sep 17 00:00:00 2001 From: dockercui Date: Fri, 26 Apr 2024 10:29:10 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: dockercui --- exporters/otlp/otlplog/otlploghttp/config.go | 2 +- sdk/metric/reader.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporters/otlp/otlplog/otlploghttp/config.go b/exporters/otlp/otlplog/otlploghttp/config.go index 3564e9caffd..13c60a24dd1 100644 --- a/exporters/otlp/otlplog/otlploghttp/config.go +++ b/exporters/otlp/otlplog/otlploghttp/config.go @@ -435,7 +435,7 @@ func loadCertPool(path string) (*x509.CertPool, error) { return cp, nil } -// loadCertPool loads and returns the tls.Certificate found at path if it +// loadCertificates loads and returns the tls.Certificate found at path if it // exists and is valid. Otherwise, nil and an error is returned. func loadCertificates(certPath, keyPath string) ([]tls.Certificate, error) { cert, err := readFile(certPath) diff --git a/sdk/metric/reader.go b/sdk/metric/reader.go index 9f900130043..1d7403122f7 100644 --- a/sdk/metric/reader.go +++ b/sdk/metric/reader.go @@ -166,7 +166,7 @@ type ReaderOption interface { ManualReaderOption } -// WithProducers registers producers as an external Producer of metric data +// WithProducer registers producers as an external Producer of metric data // for this Reader. func WithProducer(p Producer) ReaderOption { return producerOption{p: p}