mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
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:
committed by
GitHub
parent
728c77cc0c
commit
531f05d30d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user