mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 00:24:58 +00:00
Add linter staticcheck (#535)
* Add linter staticcheck Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
@@ -352,7 +353,7 @@ func setupMetrics(g *errgroup.Group, store_ store.Store) {
|
||||
|
||||
g.Go(func() error {
|
||||
for {
|
||||
stats := server.Config.Services.Queue.Info(nil)
|
||||
stats := server.Config.Services.Queue.Info(context.TODO())
|
||||
pendingJobs.Set(float64(stats.Stats.Pending))
|
||||
waitingJobs.Set(float64(stats.Stats.WaitingOnDeps))
|
||||
runningJobs.Set(float64(stats.Stats.Running))
|
||||
|
Reference in New Issue
Block a user