Skip to content

feat: add configurable retry interval for queue retries#144

Merged
appleboy merged 1 commit into
masterfrom
options
Mar 13, 2025
Merged

feat: add configurable retry interval for queue retries#144
appleboy merged 1 commit into
masterfrom
options

Conversation

@appleboy

Copy link
Copy Markdown
Member
  • Import time package
  • Add WithRetryInterval function to set retry intervals
  • Add retryInterval field to Options struct with default value of 1 second
  • New file options_test.go for testing WithRetryInterval functionality with various durations
  • Add retryInterval field to Queue struct
  • Initialize ticker with retryInterval in Queue and update its usage in start method

ref: #142

- Import `time` package
- Add `WithRetryInterval` function to set retry intervals
- Add `retryInterval` field to `Options` struct with default value of 1 second
- New file `options_test.go` for testing `WithRetryInterval` functionality with various durations
- Add `retryInterval` field to `Queue` struct
- Initialize ticker with `retryInterval` in `Queue` and update its usage in `start` method

Signed-off-by: appleboy <appleboy.tw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant