Skip to content

Commit 9452dc2

Browse files
authored
Merge branch 'master' into do-with-data
2 parents 55a665a + 72ba19c commit 9452dc2

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

.github/workflows/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
go-version: [ '1.18', '1.19', '1.20' ]
26+
go-version: ['1.18', '1.19', '1.20']
2727
os: [ubuntu-latest, macos-latest, windows-latest]
2828
env:
2929
OS: ${{ matrix.os }}

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,19 +389,17 @@ wait for a set duration for retries.
389389
390390
example of augmenting time.After with a print statement
391391
392-
type struct MyTimer {}
392+
type struct MyTimer {}
393393
394394
func (t *MyTimer) After(d time.Duration) <- chan time.Time {
395395
fmt.Print("Timer called!")
396396
return time.After(d)
397397
}
398398
399-
retry.Do(
400-
399+
retry.Do(
401400
func() error { ... },
402401
retry.WithTimer(&MyTimer{})
403-
404-
)
402+
)
405403
406404
#### type RetryIfFunc
407405

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.3.3
1+
4.3.4

options.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,19 +232,17 @@ func Context(ctx context.Context) Option {
232232
//
233233
// example of augmenting time.After with a print statement
234234
//
235-
// type struct MyTimer {}
235+
// type struct MyTimer {}
236236
//
237237
// func (t *MyTimer) After(d time.Duration) <- chan time.Time {
238238
// fmt.Print("Timer called!")
239239
// return time.After(d)
240240
// }
241241
//
242-
// retry.Do(
243-
//
242+
// retry.Do(
244243
// func() error { ... },
245244
// retry.WithTimer(&MyTimer{})
246-
//
247-
// )
245+
// )
248246
func WithTimer(t Timer) Option {
249247
return func(c *Config) {
250248
c.timer = t

0 commit comments

Comments
 (0)