Skip to content

Commit

Permalink
chore: fix some function names in comment (#1624)
Browse files Browse the repository at this point in the history
## Description

fix some function names in comment

Signed-off-by: standstaff <[email protected]>
  • Loading branch information
standstaff authored Dec 9, 2024
1 parent 018dd44 commit 3fe421b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/nodes/keeper/valPrevState.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (k Keeper) SetPrevStateValidatorsPower(ctx sdk.Ctx, power sdk.BigInt) {
_ = store.Set(types.PrevStateTotalPowerKey, b)
}

// prevStateValidatorIterator - Retrieve an iterator for the consensus validators in the prevState block
// prevStateValidatorsIterator - Retrieve an iterator for the consensus validators in the prevState block
func (k Keeper) prevStateValidatorsIterator(ctx sdk.Ctx) (iterator sdk.Iterator) {
store := ctx.KVStore(k.storeKey)
iterator, _ = sdk.KVStorePrefixIterator(store, types.PrevStateValidatorsPowerKey)
Expand Down
2 changes: 1 addition & 1 deletion x/pocketcore/types/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (sm *ServiceMetrics) getValidatorLabel(nodeAddress *sdk.Address) []string {
return []string{"validator_address", nodeAddress.String()}
}

// startPrometheusServer starts a Prometheus HTTP server, listening for metrics
// StartPrometheusServer starts a Prometheus HTTP server, listening for metrics
// collectors on addr.
func (sm *ServiceMetrics) StartPrometheusServer(addr string, maxOpenConn int) *http.Server {
srv := &http.Server{
Expand Down

0 comments on commit 3fe421b

Please sign in to comment.