Skip to content

Commit

Permalink
chore: fix comment (#21966)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyeyouyou authored Sep 28, 2024
1 parent 7fe95fc commit dd9e582
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/v2/api/telemetry/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type GatherResponse struct {
ContentType string
}

// New creates a new instance of Metrics
// NewMetrics creates a new instance of Metrics
func NewMetrics(cfg *Config) (*Metrics, error) {
if numGlobalLabels := len(cfg.GlobalLabels); numGlobalLabels > 0 {
parsedGlobalLabels := make([]metrics.Label, numGlobalLabels)
Expand Down
2 changes: 1 addition & 1 deletion server/v2/store/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"cosmossdk.io/store/v2/root"
)

// QueryBlockResultsCmd implements the default command for a BlockResults query.
// PrunesCmd implements the default command for pruning app history states.
func (s *Server[T]) PrunesCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "prune [pruning-method]",
Expand Down
2 changes: 1 addition & 1 deletion server/v2/store/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (

const ServerName = "store"

// StoreComponent manages store config and contains prune & snapshot commands
// Server manages store config and contains prune & snapshot commands
type Server[T transaction.Tx] struct {
config *Config
// saving appCreator for only RestoreSnapshotCmd
Expand Down
2 changes: 1 addition & 1 deletion server/v2/store/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

const SnapshotFileName = "_snapshot"

// QueryBlockResultsCmd implements the default command for a BlockResults query.
// ExportSnapshotCmd exports app state to snapshot store.
func (s *Server[T]) ExportSnapshotCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "export",
Expand Down

0 comments on commit dd9e582

Please sign in to comment.