Skip to content

Commit 3fe421b

Browse files
authored
chore: fix some function names in comment (#1624)
## Description fix some function names in comment Signed-off-by: standstaff <[email protected]>
1 parent 018dd44 commit 3fe421b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x/nodes/keeper/valPrevState.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (k Keeper) SetPrevStateValidatorsPower(ctx sdk.Ctx, power sdk.BigInt) {
2626
_ = store.Set(types.PrevStateTotalPowerKey, b)
2727
}
2828

29-
// prevStateValidatorIterator - Retrieve an iterator for the consensus validators in the prevState block
29+
// prevStateValidatorsIterator - Retrieve an iterator for the consensus validators in the prevState block
3030
func (k Keeper) prevStateValidatorsIterator(ctx sdk.Ctx) (iterator sdk.Iterator) {
3131
store := ctx.KVStore(k.storeKey)
3232
iterator, _ = sdk.KVStorePrefixIterator(store, types.PrevStateValidatorsPowerKey)

x/pocketcore/types/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (sm *ServiceMetrics) getValidatorLabel(nodeAddress *sdk.Address) []string {
7373
return []string{"validator_address", nodeAddress.String()}
7474
}
7575

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

0 commit comments

Comments
 (0)