File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,23 @@ type RetryImpl struct {
28
28
SilenceGivingUp bool
29
29
}
30
30
31
- func NewWithOpts (
31
+ func NewWithOptions (
32
32
wrapped aurestclientapi.Client ,
33
33
condition aurestclientapi.RetryConditionCallback ,
34
- options RetryOptions ,
34
+ opts RetryOptions ,
35
35
) aurestclientapi.Client {
36
36
repeatCount := uint8 (2 )
37
- if options .RepeatCount > 0 {
38
- repeatCount = options .RepeatCount
37
+ if opts .RepeatCount > 0 {
38
+ repeatCount = opts .RepeatCount
39
39
}
40
40
return & RetryImpl {
41
41
Wrapped : wrapped ,
42
42
RepeatCount : repeatCount ,
43
43
RetryCondition : condition ,
44
- BeforeRetry : options .BeforeRetryOrNil ,
44
+ BeforeRetry : opts .BeforeRetryOrNil ,
45
45
RetryingMetricsCallback : doNothingMetricsCallback ,
46
46
GivingUpMetricsCallback : doNothingMetricsCallback ,
47
- SilenceGivingUp : options .SilenceGivingUp ,
47
+ SilenceGivingUp : opts .SilenceGivingUp ,
48
48
}
49
49
}
50
50
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ func TestFailWithRetryWithOpts(t *testing.T) {
131
131
aulogging .SetupNoLoggerForTesting ()
132
132
133
133
mock := tstMock ()
134
- cut := NewWithOpts (mock ,
134
+ cut := NewWithOptions (mock ,
135
135
func (ctx context.Context , response * aurestclientapi.ParsedResponse , err error ) bool {
136
136
return true
137
137
},
You can’t perform that action at this time.
0 commit comments