Skip to content

Commit

Permalink
fix golint issues in core/prometheus (zeromicro#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Feb 22, 2021
1 parent b4bb5c0 commit 6e4c98e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/prometheus/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

var once sync.Once

// StartAgent starts a prometheus agent.
func StartAgent(c Config) {
once.Do(func() {
if len(c.Host) == 0 {
Expand Down
1 change: 1 addition & 0 deletions core/prometheus/config.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package prometheus

// A Config is a prometheus config.
type Config struct {
Host string `json:",optional"`
Port int `json:",default=9101"`
Expand Down

0 comments on commit 6e4c98e

Please sign in to comment.