docs(server): wrong function comments (#21017)
This commit is contained in:
parent
2d6f97e984
commit
8fe0b22145
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user