Skip to content

Commit 9fb50c1

Browse files
authored
chore: fix some inconsistent function name in comment (#2884)
Signed-off-by: yinwenyu6 <[email protected]>
1 parent bcdeb08 commit 9fb50c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

node-api/engines/echo/middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func responseMiddleware(handler *handlers.Route) echo.HandlerFunc {
4545
}
4646
}
4747

48-
// responseFromErr converts an error to an HTTP status code and response. If
48+
// responseFromError converts an error to an HTTP status code and response. If
4949
// the error is nil, the response is returned as is.
5050
func responseFromError(data any, err error) (int, any) {
5151
switch {

state-transition/core/state/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (s *StateDB) incrementPartialWithdrawalRequestInvalid() {
2424
s.telemetrySink.IncrementCounter("beacon_kit.statedb.partial_withdrawal_request_invalid")
2525
}
2626

27-
// incrementExcessValidatorStakeWithdrawal increments the telemetry counter when a withdrawal is created
27+
// incrementExcessStakePartialWithdrawal increments the telemetry counter when a withdrawal is created
2828
// because a validator's stake went over the MaxEffectiveBalance.
2929
func (s *StateDB) incrementExcessStakePartialWithdrawal() {
3030
s.telemetrySink.IncrementCounter("beacon_kit.statedb.excess_stake_partial_withdrawal")

0 commit comments

Comments
 (0)