From deb781b99fe2f7e16064757f892f084c7301f564 Mon Sep 17 00:00:00 2001 From: Chris Hager Date: Tue, 19 Nov 2024 12:05:05 +0100 Subject: [PATCH] remove unused metrics pkg (#8) --- .github/workflows/checks.yml | 2 +- metrics/metrics.go | 10 ---------- proxy/receiver_proxy_test.go | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 metrics/metrics.go diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 11aa09d..262fb73 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -43,7 +43,7 @@ jobs: run: go install honnef.co/go/tools/cmd/staticcheck@2024.1.1 - name: Install golangci-lint - run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.3 + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 - name: Install NilAway run: go install go.uber.org/nilaway/cmd/nilaway@v0.0.0-20240821220108-c91e71c080b7 diff --git a/metrics/metrics.go b/metrics/metrics.go deleted file mode 100644 index 6711c76..0000000 --- a/metrics/metrics.go +++ /dev/null @@ -1,10 +0,0 @@ -// Package metrics provides a way to collect and expose metrics for the application. -package metrics - -import "github.com/VictoriaMetrics/metrics" - -var totalRequestReceived = metrics.NewCounter("requests_total") - -func IncRequestsReceived() { - totalRequestReceived.Inc() -} diff --git a/proxy/receiver_proxy_test.go b/proxy/receiver_proxy_test.go index 1a6005c..3efacf0 100644 --- a/proxy/receiver_proxy_test.go +++ b/proxy/receiver_proxy_test.go @@ -384,7 +384,7 @@ func createTestTx(i int) *hexutil.Bytes { chainID := big.NewInt(1) txData := &types.DynamicFeeTx{ ChainID: chainID, - Nonce: uint64(i), + Nonce: uint64(i), //nolint:gosec GasTipCap: big.NewInt(1), GasFeeCap: big.NewInt(1), Gas: 21000,