Skip to content

Commit

Permalink
CCOL-2356: Enable producers.persistent_connections setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Pereira authored and dorner committed May 8, 2024
1 parent dc4e14d commit c329138
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## UNRELEASED
- Feature: Enable `producers.persistent_connections` phobos setting

# 1.24.2 - 2024-05-01
- Fix: Deprecation notice with Rails 7.
Expand Down
3 changes: 2 additions & 1 deletion lib/deimos/config/phobos_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def phobos_config
compression_threshold: self.producers.compression_threshold,
max_queue_size: self.producers.max_queue_size,
delivery_threshold: self.producers.delivery_threshold,
delivery_interval: self.producers.delivery_interval
delivery_interval: self.producers.delivery_interval,
persistent_connections: self.producers.persistent_connections
},
consumer: {
session_timeout: self.consumers.session_timeout,
Expand Down
6 changes: 4 additions & 2 deletions spec/config/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def consume
compression_threshold: 1,
max_queue_size: 10_000,
delivery_threshold: 0,
delivery_interval: 0
delivery_interval: 0,
persistent_connections: false
}
)
end
Expand Down Expand Up @@ -278,7 +279,8 @@ def consume
compression_threshold: 2,
max_queue_size: 10,
delivery_threshold: 1,
delivery_interval: 1
delivery_interval: 1,
persistent_connections: true
}
)
end
Expand Down

0 comments on commit c329138

Please sign in to comment.