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

Load RabbitMQ credentials directly using PikaTransport object #434

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tieneupin
Copy link
Contributor

Now that we've removed the Zocalo configuration dependency, we import and use PikaTransport directly to load the RabbitMQ configuration

@tieneupin tieneupin added bug Something isn't working server Relates to the server component labels Jan 9, 2025
@tieneupin tieneupin requested a review from d-j-hatton January 9, 2025 16:30
@tieneupin tieneupin self-assigned this Jan 9, 2025
@tieneupin tieneupin changed the title Use PikaTransport object directly to load RabbitMQ credentials Load RabbitMQ credentials directly using PikaTransport object Jan 9, 2025
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 26.95%. Comparing base (46ad843) to head (1565e5b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #434   +/-   ##
=======================================
  Coverage   26.95%   26.95%           
=======================================
  Files          75       75           
  Lines       10243    10243           
  Branches     1351     1351           
=======================================
  Hits         2761     2761           
  Misses       7392     7392           
  Partials       90       90           

_set_up_transport(args.transport)
# Load RabbitMQ configuration and set up the connection
PikaTransport().load_configuration_file(security_config.rabbitmq_credentials)
_set_up_transport("pika")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be _set_up_transport("PikaTransport")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Relates to the server component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants