Skip to content

Conversation

@andrzejbisewski
Copy link
Contributor

@andrzejbisewski andrzejbisewski commented Aug 29, 2025

For sending a message:

3.4.3 :006 > 2.times {   TestPublisher.new.call({ event_data: "some value" }) }
getting backend..
getting backend..
getting backend..
getting backend..

the backend was called multiple times - each time initialising a new SNS client

Its used in ahplus-rails https://github.com/AirHelp/ahplus-rails/blob/master/Gemfile#L98

@andrzejbisewski andrzejbisewski self-assigned this Aug 29, 2025
@andrzejbisewski andrzejbisewski marked this pull request as ready for review August 29, 2025 11:28
seban
seban previously approved these changes Aug 29, 2025
cinkonaap
cinkonaap previously approved these changes Aug 29, 2025
@andrzejbisewski andrzejbisewski dismissed stale reviews from cinkonaap and seban via 71c3029 September 9, 2025 10:46
rapsad
rapsad previously approved these changes Sep 9, 2025
przprz
przprz previously approved these changes Sep 10, 2025
Comment on lines 42 to 43
@backend ||= begin
if configured?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@backend ||= begin
if configured?
@backend ||=
begin
if configured?

🙏🏻

@andrzejbisewski andrzejbisewski dismissed stale reviews from przprz and rapsad via 4b56346 September 10, 2025 13:26
@andrzejbisewski
Copy link
Contributor Author

Can you please squash merge?

@rapsad rapsad merged commit cd1a5c0 into master Sep 10, 2025
7 checks passed
@rapsad rapsad deleted the cache-client branch September 10, 2025 16:13
@rapsad rapsad restored the cache-client branch September 10, 2025 16:15
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.

6 participants