From 7e4e4b15fd9f0b86bf892929e269955dfde79e21 Mon Sep 17 00:00:00 2001 From: Alexander Melentyev Date: Sat, 30 Oct 2021 23:42:28 +0300 Subject: [PATCH] Fix docs --- metrics/provider/prometheus.go | 2 +- transport/nats/subscriber.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/provider/prometheus.go b/metrics/provider/prometheus.go index 48853b0c3..8e7cc7af2 100644 --- a/metrics/provider/prometheus.go +++ b/metrics/provider/prometheus.go @@ -46,7 +46,7 @@ func (p *prometheusProvider) NewGauge(name string) metrics.Gauge { }, []string{}) } -// NewGauge implements Provider via prometheus.NewSummaryFrom, i.e. the summary +// NewHistogram implements Provider via prometheus.NewSummaryFrom, i.e. the summary // is registered. The metric's namespace and subsystem are taken from the // Provider. Help is set to the name of the metric, and no const label names are // set. Buckets are ignored. diff --git a/transport/nats/subscriber.go b/transport/nats/subscriber.go index 4accab8e0..d4b5adcb6 100644 --- a/transport/nats/subscriber.go +++ b/transport/nats/subscriber.go @@ -150,7 +150,7 @@ func (s Subscriber) ServeMsg(nc *nats.Conn) func(msg *nats.Msg) { // types. type ErrorEncoder func(ctx context.Context, err error, reply string, nc *nats.Conn) -// ServerFinalizerFunc can be used to perform work at the end of an request +// SubscriberFinalizerFunc can be used to perform work at the end of an request // from a publisher, after the response has been written to the publisher. The principal // intended use is for request logging. type SubscriberFinalizerFunc func(ctx context.Context, msg *nats.Msg)