Skip to content

Commit

Permalink
docs(server): wrong function comments (#21017)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfz941 authored Jul 22, 2024
1 parent 2d6f97e commit 8fe0b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/v2/cometbft/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion server/v2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8fe0b22

Please sign in to comment.