From a13f681032c244c4a34ff19045de5c9945f0e55d Mon Sep 17 00:00:00 2001 From: galaio Date: Mon, 30 Dec 2024 14:41:57 +0800 Subject: [PATCH] flags: fix some lint issues; --- core/rawdb/freezer_table.go | 5 ----- go.mod | 1 - go.sum | 2 -- 3 files changed, 8 deletions(-) diff --git a/core/rawdb/freezer_table.go b/core/rawdb/freezer_table.go index 0df39b7956..0df784733f 100644 --- a/core/rawdb/freezer_table.go +++ b/core/rawdb/freezer_table.go @@ -129,11 +129,6 @@ func newFreezerTable(path, name string, disableSnappy, readonly bool) (*freezerT return newTable(path, name, metrics.NewInactiveMeter(), metrics.NewInactiveMeter(), metrics.NewGauge(), freezerTableSize, disableSnappy, readonly) } -// newAdditionTable opens the given path as a addition table. -func newAdditionTable(path, name string, disableSnappy, readonly bool) (*freezerTable, error) { - return openAdditionTable(path, name, metrics.NewInactiveMeter(), metrics.NewInactiveMeter(), metrics.NewGauge(), freezerTableSize, disableSnappy, readonly) -} - // newTable opens a freezer table, creating the data and index files if they are // non-existent. Both files are truncated to the shortest common length to ensure // they don't go out of sync. diff --git a/go.mod b/go.mod index 667d89c890..a4a085f997 100644 --- a/go.mod +++ b/go.mod @@ -61,7 +61,6 @@ require ( github.com/panjf2000/ants/v2 v2.4.5 github.com/peterh/liner v1.2.0 github.com/pkg/errors v0.9.1 - github.com/prometheus/tsdb v0.10.0 github.com/protolambda/bls12-381-util v0.1.0 github.com/protolambda/zrnt v0.32.2 github.com/protolambda/ztyp v0.2.2 diff --git a/go.sum b/go.sum index 18975c923b..0dfac90035 100644 --- a/go.sum +++ b/go.sum @@ -1003,8 +1003,6 @@ github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3c github.com/prometheus/prom2json v1.3.0 h1:BlqrtbT9lLH3ZsOVhXPsHzFrApCTKRifB7gjJuypu6Y= github.com/prometheus/prom2json v1.3.0/go.mod h1:rMN7m0ApCowcoDlypBHlkNbp5eJQf/+1isKykIP5ZnM= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/prometheus/tsdb v0.10.0 h1:If5rVCMTp6W2SiRAQFlbpJNgVlgMEd+U2GZckwK38ic= -github.com/prometheus/tsdb v0.10.0/go.mod h1:oi49uRhEe9dPUTlS3JRZOwJuVi6tmh10QSgwXEyGCt4= github.com/protolambda/bls12-381-util v0.1.0 h1:05DU2wJN7DTU7z28+Q+zejXkIsA/MF8JZQGhtBZZiWk= github.com/protolambda/bls12-381-util v0.1.0/go.mod h1:cdkysJTRpeFeuUVx/TXGDQNMTiRAalk1vQw3TYTHcE4= github.com/protolambda/zrnt v0.32.2 h1:KZ48T+3UhsPXNdtE/5QEvGc9DGjUaRI17nJaoznoIaM=