Skip to content

Commit

Permalink
Update to fedora-messaging 3.6.0 and use twisted_publish()
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
  • Loading branch information
abompard committed Jun 13, 2024
1 parent e3907f4 commit 570df48
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
5 changes: 1 addition & 4 deletions fedbadges/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ def _publish(message):
fm_api.publish(**publish_args)
else:
# We're running in the consumer
# Use fm_api.twisted_publish() when available
threads.blockingCallFromThread(
reactor, fm_api._twisted_service._service.factory.publish, **publish_args
)
threads.blockingCallFromThread(reactor, fm_api.twisted_publish, **publish_args)


def notification_callback(message):
Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pyyaml = "^6.0.1"
datanommer-models = { git = "https://github.com/fedora-infra/datanommer.git", branch = "stable", subdirectory = "datanommer.models" }
requests = "^2.31.0"
psutil = "^5.9.8"
fedora-messaging = "^3.5.0"
fedora-messaging = "^3.6.0"
backoff = "^2.2.1"
fasjson-client = "^1.0.8"
click = "^8.0.0"
Expand Down

0 comments on commit 570df48

Please sign in to comment.