Skip to content

Commit

Permalink
fix(epoch): Linting line 1021
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroJCB committed Sep 4, 2024
1 parent 677f544 commit c29d0ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dot/state/epoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,8 @@ func (s *EpochState) FinalizeBABENextEpochData(finalizedHeader *types.Header) er

// deleteDataFromDisk is a generic function that deletes all the nextEpochData or nextConfigData
// for a given epoch from the database
func deleteDataFromDisk[T types.NextEpochData | types.NextConfigDataV1](db database.Table, epoch uint64, prefix []byte) error {
func deleteDataFromDisk[T types.NextEpochData | types.NextConfigDataV1](
db database.Table, epoch uint64, prefix []byte) error {
keysToDelete, err := getDataKeysFromDisk[T](db, prefix, epoch)
if err != nil {
return fmt.Errorf("cannot get next config data keys from disk: %w", err)
Expand Down

0 comments on commit c29d0ba

Please sign in to comment.