From dd9e5825ae33300f2364094d8a7cb2cd5fd0dfd3 Mon Sep 17 00:00:00 2001 From: tianyeyouyou <150894831+tianyeyouyou@users.noreply.github.com> Date: Sat, 28 Sep 2024 15:18:08 +0800 Subject: [PATCH] chore: fix comment (#21966) --- server/v2/api/telemetry/metrics.go | 2 +- server/v2/store/commands.go | 2 +- server/v2/store/server.go | 2 +- server/v2/store/snapshot.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/v2/api/telemetry/metrics.go b/server/v2/api/telemetry/metrics.go index 86218630c880..3dd9e3d55b94 100644 --- a/server/v2/api/telemetry/metrics.go +++ b/server/v2/api/telemetry/metrics.go @@ -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) diff --git a/server/v2/store/commands.go b/server/v2/store/commands.go index 8b518724aae4..3b9f175c7b0f 100644 --- a/server/v2/store/commands.go +++ b/server/v2/store/commands.go @@ -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]", diff --git a/server/v2/store/server.go b/server/v2/store/server.go index 93f9cf436648..c50a53dc6e24 100644 --- a/server/v2/store/server.go +++ b/server/v2/store/server.go @@ -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 diff --git a/server/v2/store/snapshot.go b/server/v2/store/snapshot.go index db0ed9ad93dd..b804e34b71c8 100644 --- a/server/v2/store/snapshot.go +++ b/server/v2/store/snapshot.go @@ -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",