Skip to content

Commit

Permalink
FMWK-658-retry-info-commands
Browse files Browse the repository at this point in the history
- tests
  • Loading branch information
filkeith committed Jan 28, 2025
1 parent cc40dcd commit e78a55d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/asinfo/info_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ type InfoClient struct {

func NewInfoClientFromAerospike(aeroClient aerospikeClient, policy *a.InfoPolicy, retryPolicy *models.RetryPolicy,
) *InfoClient {
if retryPolicy.MaxRetries == 0 {
if retryPolicy == nil {
retryPolicy = models.NewDefaultRetryPolicy()
}

Expand Down
2 changes: 1 addition & 1 deletion models/retry_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ func NewRetryPolicy(baseTimeout time.Duration, multiplier float64, maxRetries ui

// NewDefaultRetryPolicy returns new default configuration for retry attempts
func NewDefaultRetryPolicy() *RetryPolicy {
return NewRetryPolicy(1000*time.Millisecond, 1, 1)
return NewRetryPolicy(1000*time.Millisecond, 1, 3)
}

0 comments on commit e78a55d

Please sign in to comment.