Skip to content

Commit

Permalink
resource_group: export DegradeModeWaitDuration
Browse files Browse the repository at this point in the history
Signed-off-by: disksing <i@disksing.com>
  • Loading branch information
disksing committed May 8, 2024
1 parent 50be043 commit c3edf83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/resource_group/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ func WithWaitRetryTimes(times int) ResourceControlCreateOption {
}
}

// WithDegradedModeWaitDuration is the option to set the wait duration for degraded mode.
func WithDegradedModeWaitDuration(d time.Duration) ResourceControlCreateOption {
return func(controller *ResourceGroupsController) {
controller.ruConfig.DegradedModeWaitDuration = d
}
}

var _ ResourceGroupKVInterceptor = (*ResourceGroupsController)(nil)

// ResourceGroupsController implements ResourceGroupKVInterceptor.
Expand Down

0 comments on commit c3edf83

Please sign in to comment.