refactor to increase code maintainability - move configuration of connections into connection pool classs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Background:

file lib/gitlab/mail_room.rb contains

          if gitlab_redis.sentinels?
            config[:sentinels] = gitlab_redis.sentinels
          end

This code is too tightly coupled to an implementation detail of the pubsub functionality and should be moved into the connection pool management rather than its client.

What questions are you trying to answer?

increase long term maintainability of code

What do you already know about the areas you are exploring?

What does success look like at the end of the project?

Code to configure connections to sentinels should be moved into the connection pool classes.

Links / references:

gitlab-ce~3011693

Edited Sep 25, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading