diff options
-rw-r--r-- | .github/workflows/linux.yml | 10 | ||||
-rw-r--r-- | plugins/metrics/plugin.go | 3 |
2 files changed, 2 insertions, 11 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c5fde431..a478726d 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,14 +1,6 @@ name: Tests -on: - push: - pull_request: - branches: - # Branches from forks have the form 'user:branch-name' so we only run - # this job on pull_request events for branches that look like fork - # branches. Without this we would end up running this job twice for non - # forked PRs, once for the push and then once for opening the PR. - - "**:**" +on: [push, pull_request] jobs: golang: diff --git a/plugins/metrics/plugin.go b/plugins/metrics/plugin.go index 651a2475..efcbfc50 100644 --- a/plugins/metrics/plugin.go +++ b/plugins/metrics/plugin.go @@ -75,8 +75,7 @@ func (m *Plugin) Init(cfg config.Configurer, log logger.Logger) error { } // Register new prometheus collector. -func (m *Plugin) Register(c -) error { +func (m *Plugin) Register(c prometheus.Collector) error { return m.registry.Register(c) } |