Skip to content

Commit

Permalink
improves naming for function
Browse files Browse the repository at this point in the history
  • Loading branch information
Noroth committed May 13, 2021
1 parent a57643a commit b6d0474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func Do(retryableFunc RetryableFunc, opts ...Option) error {
var n uint

//default
config := newWithDefaults()
config := newDefaultRetryConfig()

//apply opts
for _, opt := range opts {
Expand Down Expand Up @@ -147,7 +147,7 @@ func Do(retryableFunc RetryableFunc, opts ...Option) error {
return errorLog
}

func newWithDefaults() *Config {
func newDefaultRetryConfig() *Config {
return &Config{
attempts: uint(10),
delay: 100 * time.Millisecond,
Expand Down

0 comments on commit b6d0474

Please sign in to comment.