docs(server): wrong function comments (#21017)

This commit is contained in:
lfz941 2024-07-22 18:16:07 +08:00 committed by GitHub
parent 2d6f97e984
commit 8fe0b22145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

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