Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ocnc2 committed Aug 20, 2024
1 parent 117a69a commit 3cb0bfb
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions mod/runtime/pkg/middleware/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package middleware

import "github.com/berachain/beacon-kit/mod/errors"

//nolint:gochecknoglobals // errors
var (
// ErrUnexpectedEvent is returned when an unexpected event is encountered.
ErrUnexpectedEvent = errors.New("unexpected event")
Expand All @@ -38,26 +39,39 @@ var (
)

ErrInitGenesisTimeout = func(errTimeout error) error {
return errors.Wrapf(errTimeout, "A timeout occurred while waiting for genesis data processing")
return errors.Wrapf(errTimeout,
"A timeout occurred while waiting for genesis data processing",
)
}

ErrBuildBeaconBlockTimeout = func(errTimeout error) error {
return errors.Wrapf(errTimeout, "A timeout occurred while waiting for a beacon block to be built")
return errors.Wrapf(errTimeout,
"A timeout occurred while waiting for a beacon block to be built",
)
}

ErrBuildSidecarsTimeout = func(errTimeout error) error {
return errors.Wrapf(errTimeout, "A timeout occurred while waiting for blob sidecars to be built")
return errors.Wrapf(errTimeout,
"A timeout occurred while waiting for blob sidecars to be built",
)
}

//nolint:lll // error messages
ErrVerifyBeaconBlockTimeout = func(errTimeout error) error {
return errors.Wrapf(errTimeout, "A timeout occurred while waiting for a beacon block to be verified")
return errors.Wrapf(errTimeout,
"A timeout occurred while waiting for a beacon block to be verified",
)
}

ErrVerifySidecarsTimeout = func(errTimeout error) error {
return errors.Wrapf(errTimeout, "A timeout occurred while waiting for blob sidecars to be verified")
return errors.Wrapf(errTimeout,
"A timeout occurred while waiting for blob sidecars to be verified",
)
}

ErrFinalValidatorUpdatesTimeout = func(errTimeout error) error {
return errors.Wrapf(errTimeout, "A timeout occurred while waiting for final validator updates")
return errors.Wrapf(errTimeout,
"A timeout occurred while waiting for final validator updates",
)
}
)

0 comments on commit 3cb0bfb

Please sign in to comment.