Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed May 30, 2019
1 parent f1fb29e commit f65c499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/drone-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,8 @@ func server(c *cli.Context) error {
return nil
})

setupMetrics(&g, store_)

// start the server with tls enabled
if c.String("server-cert") != "" {
g.Go(func() error {
Expand All @@ -608,8 +610,6 @@ func server(c *cli.Context) error {
return g.Wait()
}

setupMetrics(g, store_)

// start the server without tls enabled
if !c.Bool("lets-encrypt") {
return http.ListenAndServe(
Expand Down
2 changes: 1 addition & 1 deletion cmd/drone-server/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func setupTree(c *cli.Context) *httptreemux.ContextMux {

func before(c *cli.Context) error { return nil }

func setupMetrics(g errgroup.Group, store_ store.Store) {
func setupMetrics(g *errgroup.Group, store_ store.Store) {
pendingJobs := promauto.NewGauge(prometheus.GaugeOpts{
Namespace: "drone",
Name: "pending_jobs",
Expand Down

0 comments on commit f65c499

Please sign in to comment.