Skip to content

Commit

Permalink
update case for nil policy
Browse files Browse the repository at this point in the history
  • Loading branch information
korotkov-aerospike committed Aug 15, 2024
1 parent 7a6de88 commit 7f941bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/aerospike/restore_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (rw *restoreWriter) Close() error {

func attemptsLeft(rc *models.RetryPolicy, attempt int) bool {
if rc == nil {
return false
return attempt == 0 // only pass on 1st try.
}

return attempt <= rc.MaxRetries
Expand Down

0 comments on commit 7f941bf

Please sign in to comment.