chore: fix comment (#21966)

This commit is contained in:
tianyeyouyou 2024-09-28 15:18:08 +08:00 committed by GitHub
parent 7fe95fc3f9
commit dd9e5825ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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]",

View File

@ -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

View File

@ -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",