spring-cloud-aws
spring-cloud-aws copied to clipboard
fix: Timeout settings in SqsTemplate
:loudspeaker: Type of change
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
:scroll: Description
- Timeouts in SqsTemplate were being set by calling Duration#getSecondsPart which is always a number between 0 and 59
- Update to use Duration#getSeconds to get the full timeout specified, in seconds
:bulb: Motivation and Context
This supports using a visibility time and polling timeout that's greater than 60 seconds.
:green_heart: How did you test it?
Updated one of the unit tests for SqsTemplate
:pencil: Checklist
- [x] I reviewed submitted code
- [x] I added tests to verify changes
- [ ] I updated reference documentation to reflect the change
- [ ] All tests passing
- [ ] No breaking changes