Unused parameter should be replaced by underscore (#9632)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
This commit is contained in:
deepsource-autofix[bot]
2021-09-20 20:51:59 +00:00
committed by GitHub
parent 728c77cc0c
commit 531f05d30d
31 changed files with 245 additions and 245 deletions

View File

@@ -16,7 +16,7 @@ const (
publicKeyMigrationBatchSize = 100 // Batch update 100 public keys at a time.
)
func (s *Store) migrateSourceTargetEpochsBucketUp(ctx context.Context) error {
func (s *Store) migrateSourceTargetEpochsBucketUp(_ context.Context) error {
// First, we extract the public keys we need to migrate data for.
publicKeyBytes := make([][]byte, 0)
err := s.db.View(func(tx *bolt.Tx) error {
@@ -95,7 +95,7 @@ func (s *Store) migrateSourceTargetEpochsBucketUp(ctx context.Context) error {
})
}
func (s *Store) migrateSourceTargetEpochsBucketDown(ctx context.Context) error {
func (s *Store) migrateSourceTargetEpochsBucketDown(_ context.Context) error {
return s.db.Update(func(tx *bolt.Tx) error {
bkt := tx.Bucket(pubKeysBucket)
err := bkt.ForEach(func(k, _ []byte) error {