diff --git a/server/v2/cometbft/abci.go b/server/v2/cometbft/abci.go index ad69cf9a941..b0c1a8452a1 100644 --- a/server/v2/cometbft/abci.go +++ b/server/v2/cometbft/abci.go @@ -103,7 +103,7 @@ func (c *Consensus[T]) SetStreamingManager(sm streaming.Manager) { c.streaming = sm } -// RegisterExtensions registers the given extensions with the consensus module's snapshot manager. +// RegisterSnapshotExtensions registers the given extensions with the consensus module's snapshot manager. // It allows additional snapshotter implementations to be used for creating and restoring snapshots. func (c *Consensus[T]) RegisterSnapshotExtensions(extensions ...snapshots.ExtensionSnapshotter) error { if err := c.snapshotManager.RegisterExtensions(extensions...); err != nil { diff --git a/server/v2/config.go b/server/v2/config.go index 5a593671892..57cce302bd7 100644 --- a/server/v2/config.go +++ b/server/v2/config.go @@ -28,7 +28,7 @@ func ReadConfig(configPath string) (*viper.Viper, error) { return v, nil } -// UnmarshalSubconfig unmarshals the given subconfig from the viper instance. +// UnmarshalSubConfig unmarshals the given subconfig from the viper instance. // It unmarshals the config, env, flags into the target struct. // Use this instead of viper.Sub because viper does not unmarshal flags. func UnmarshalSubConfig(v *viper.Viper, subName string, target any) error {