Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separation of concerns #2

Merged
merged 6 commits into from
Jul 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: rename Worker class/module to PulseWorker
  • Loading branch information
fbessou committed Jul 24, 2024
commit fb8a4db3ddda7a3b3f4f283c3ac5abe203309fb5
4 changes: 2 additions & 2 deletions git_hg_sync/__main__.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
from mozlog import commandline

from git_hg_sync import config
from git_hg_sync.pulse_consumer import Worker
from git_hg_sync.pulse_worker import PulseWorker
from git_hg_sync.repo_synchronizer import RepoSynchronyzer

HERE = Path(__file__).parent
@@ -52,7 +52,7 @@ def main():
repo_synchronyzer = RepoSynchronyzer(repos_config=repos_config)
with connection as conn:
logger.info(f"connected to {conn.host}")
worker = Worker(conn, queue, repo_synchronyzer=repo_synchronyzer)
worker = PulseWorker(conn, queue, repo_synchronyzer=repo_synchronyzer)
worker.run()


Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
logger = get_proxy_logger("pluse_consumer")


class Worker(ConsumerMixin):
class PulseWorker(ConsumerMixin):

def __init__(self, connection, queue, *, repo_synchronyzer):
self.connection = connection