feat: add RedundancySettings getter

This commit is contained in:
Derrick Hammer 2024-03-10 13:13:25 -04:00
parent ae178f003f
commit c9683453c0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 11 additions and 0 deletions

View File

@ -278,3 +278,14 @@ func (r *RenterDefault) GougingSettings(ctx context.Context) (api.GougingSetting
return settings, nil return settings, nil
} }
func (r *RenterDefault) RedundancySettings(ctx context.Context) (api.RedundancySettings, error) {
var settings api.RedundancySettings
err := r.GetSetting(ctx, api.SettingRedundancy, &settings)
if err != nil {
return api.RedundancySettings{}, err
}
return settings, nil
}