Skip to content

Commit

Permalink
bugfix: staiccheck copylock (holding sync.Once)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhou Peng <p@ctriple.cn>

Kubernetes-commit: c3e8a2f56cb0e903801e4209bfb045ca6614bbd5
  • Loading branch information
Zhou Peng authored and k8s-publishing-bot committed Apr 24, 2020
1 parent a400759 commit c292227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metrics/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (o *GaugeOpts) annotateStabilityLevel() {

// convenience function to allow easy transformation to the prometheus
// counterpart. This will do more once we have a proper label abstraction
func (o GaugeOpts) toPromGaugeOpts() prometheus.GaugeOpts {
func (o *GaugeOpts) toPromGaugeOpts() prometheus.GaugeOpts {
return prometheus.GaugeOpts{
Namespace: o.Namespace,
Subsystem: o.Subsystem,
Expand Down Expand Up @@ -169,7 +169,7 @@ func (o *HistogramOpts) annotateStabilityLevel() {

// convenience function to allow easy transformation to the prometheus
// counterpart. This will do more once we have a proper label abstraction
func (o HistogramOpts) toPromHistogramOpts() prometheus.HistogramOpts {
func (o *HistogramOpts) toPromHistogramOpts() prometheus.HistogramOpts {
return prometheus.HistogramOpts{
Namespace: o.Namespace,
Subsystem: o.Subsystem,
Expand Down Expand Up @@ -224,7 +224,7 @@ var (

// convenience function to allow easy transformation to the prometheus
// counterpart. This will do more once we have a proper label abstraction
func (o SummaryOpts) toPromSummaryOpts() prometheus.SummaryOpts {
func (o *SummaryOpts) toPromSummaryOpts() prometheus.SummaryOpts {
// we need to retain existing quantile behavior for backwards compatibility,
// so let's do what prometheus used to do prior to v1.
objectives := o.Objectives
Expand Down

0 comments on commit c292227

Please sign in to comment.