spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

fix: Timeout settings in SqsTemplate

Open joey opened this issue 4 months ago • 2 comments

: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

:crystal_ball: Next steps

joey avatar Oct 02 '24 23:10 joey