feat: add RedundancySettings getter
This commit is contained in:
parent
ae178f003f
commit
c9683453c0
|
@ -278,3 +278,14 @@ func (r *RenterDefault) GougingSettings(ctx context.Context) (api.GougingSetting
|
|||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue