Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: povilasv <[email protected]>
  • Loading branch information
bwplotka and povilasv authored Mar 28, 2019
1 parent a924bff commit 3a2d79e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (m *ClientMetrics) EnableClientHandlingTimeHistogram(opts ...HistogramOptio
// Histogram metrics can be very expensive for Prometheus to retain and query.
func (m *ClientMetrics) EnableClientStreamReceiveTimeHistogram(opts ...HistogramOption) {
for _, o := range opts {
o(&m.clientHandledHistogramOpts)
o(&m.clientStreamRecvHistogramOpts)
}

if !m.clientStreamRecvHistogramEnabled {
Expand All @@ -157,7 +157,7 @@ func (m *ClientMetrics) EnableClientStreamReceiveTimeHistogram(opts ...Histogram
// Histogram metrics can be very expensive for Prometheus to retain and query.
func (m *ClientMetrics) EnableClientStreamSendTimeHistogram(opts ...HistogramOption) {
for _, o := range opts {
o(&m.clientHandledHistogramOpts)
o(&m.clientStreamSendHistogramOpts)
}

if !m.clientStreamSendHistogramEnabled {
Expand Down

0 comments on commit 3a2d79e

Please sign in to comment.