Skip to content

Commit

Permalink
(PE-36985) Make connection limits configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
artlawson committed Oct 16, 2023
1 parent fec2a2e commit b601715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/puppetlabs/rbac_client/services/activity.clj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
(init [this context]
(let [api-url (get-in-config [:activity-consumer :api-url])
ssl-config (get-in-config [:global :certs])
route-limit {:max-connections-per-route 20}
route-limit (get-in-config [:rbac-consumer :max-connections-per-route] 20)
client (create-client (merge route-limit ssl-config))]
(assoc context
:client client
Expand Down
2 changes: 1 addition & 1 deletion src/puppetlabs/rbac_client/services/rbac.clj
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
(init [_ tk-ctx]
(if-let [rbac-url (get-in-config [:rbac-consumer :api-url])]
(let [ssl-config (get-in-config [:global :certs])
route-limit {:max-connections-per-route 20}
route-limit (get-in-config [:rbac-consumer :max-connections-per-route] 20)
certified-client (create-client (merge route-limit ssl-config))
uncertified-client (create-client (merge route-limit (select-keys ssl-config [:ssl-ca-cert])))]
(assoc tk-ctx
Expand Down

0 comments on commit b601715

Please sign in to comment.