Skip to content

PikaTransport: use numeric subscription IDs internally#85

Merged
Anthchirp merged 6 commits into
mainfrom
subscription-ids
Oct 15, 2021
Merged

PikaTransport: use numeric subscription IDs internally#85
Anthchirp merged 6 commits into
mainfrom
subscription-ids

Conversation

@Anthchirp

Copy link
Copy Markdown
Contributor

And pass the subscription ID to the callback functions as part of the message headers, so that ack()/nack() calls work as expected.

and make existing ones more precise
and only convert to strings at the pika API boundary.
Write the numeric subscription ID into message headers when passing them
to the subscribed callback functions, so they can be used to ACK/NACK
later.
@Anthchirp Anthchirp requested a review from ndevenish October 13, 2021 13:37
@codecov

codecov Bot commented Oct 13, 2021

Copy link
Copy Markdown

Codecov Report

Merging #85 (745fbbb) into main (564147c) will increase coverage by 0.22%.
The diff coverage is 61.90%.

@@            Coverage Diff             @@
##             main      #85      +/-   ##
==========================================
+ Coverage   77.00%   77.23%   +0.22%     
==========================================
  Files          22       22              
  Lines        1922     1915       -7     
  Branches      325      323       -2     
==========================================
- Hits         1480     1479       -1     
+ Misses        375      369       -6     
  Partials       67       67              

Comment thread src/workflows/transport/common_transport.py
slightly modify the SampleConsumer to make it easier to use as a base
for these kind of tests
@Anthchirp Anthchirp merged commit dd449bf into main Oct 15, 2021
@Anthchirp Anthchirp deleted the subscription-ids branch October 15, 2021 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants