Skip to content

Commit

Permalink
Merge pull request #1198 from alexander-melentyev/fix-typo
Browse files Browse the repository at this point in the history
Fix docs
  • Loading branch information
ChrisHines authored Oct 30, 2021
2 parents 9a1a7ad + 7e4e4b1 commit ed56ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metrics/provider/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion transport/nats/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed56ff7

Please sign in to comment.